Set RUST_BACKTRACE=0 in feature tests

If RUST_BACKTRACE=1 was set outside the test runner,
e.g. `RUST_BACKTRACE=1 cargo test`, this propagated to the test binary
and changed error outputs.

Interestingly this only affected `nested_json_type_error`.

Resolves #406.
This commit is contained in:
Jan Verbeek 2025-02-26 11:08:50 +01:00
parent 21e998e5b2
commit eeff9c17d4

View File

@ -92,6 +92,7 @@ fn get_base_command() -> Command {
cmd.env("XH_CONFIG_DIR", "");
#[cfg(target_os = "windows")]
cmd.env("XH_TEST_MODE_WIN_HOME_DIR", "");
cmd.env("RUST_BACKTRACE", "0");
cmd
}