From 2d6800b3aacc3b8ea223fc92ae7db1e2ae868109 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 13 Feb 2024 15:34:21 +0000 Subject: test: fix backtrace display between 5 Feb 2024 and 13 Feb 2024 backtrace began activiating in `nix-shell` and ci during integration tests when rexpect. this caused some error tests to fail / hang it was not activating in the `nix-shell` when the cli was called seperately setting the `RUST_BACKTRACE=0` in the rexpect config surpresses the backtrace as desired --- test_utils/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test_utils') diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 8128e98..0e34983 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs @@ -770,6 +770,7 @@ where { let mut cmd = std::process::Command::new(assert_cmd::cargo::cargo_bin("ngit")); cmd.env("NGITTEST", "TRUE"); + cmd.env("RUST_BACKTRACE", "0"); cmd.args(args); // using branch for PR https://github.com/rust-cli/rexpect/pull/103 to strip ansi escape codes rexpect::session::spawn_with_options( @@ -792,6 +793,7 @@ where { let mut cmd = std::process::Command::new(assert_cmd::cargo::cargo_bin("ngit")); cmd.env("NGITTEST", "TRUE"); + cmd.env("RUST_BACKTRACE", "0"); cmd.current_dir(dir); cmd.args(args); // using branch for PR https://github.com/rust-cli/rexpect/pull/103 to strip ansi escape codes -- cgit v1.2.3