Ignore problematic overlapping tests for SHLVL (#15430)

The `$env.SHLVL` tests, while improved, still cause CI (usually local)
an irritating percentage of the time. Until we can come with a better
way of testing, we're going to ignore them.
This commit is contained in:
Douglas 2025-03-27 14:47:43 -04:00 committed by GitHub
parent 5d32cd2c40
commit 3030608de0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -246,6 +246,11 @@ fn env_shlvl_commandstring_does_not_increment() {
// test run will likely hang, at least for some users.
// Instead, use -e / --execute with an `exit` to test REPL
// functionality as demonstrated below.
//
// We've also learned that `-e 'exit'` is not enough to
// prevent failures entirely. For now we're going to ignore
// these tests until we can find a better solution.
#[ignore = "Causing hangs when both tests overlap"]
#[test]
fn env_shlvl_in_repl() {
let actual = nu!("
@ -256,6 +261,7 @@ fn env_shlvl_in_repl() {
assert_eq!(actual.out, "6");
}
#[ignore = "Causing hangs when both tests overlap"]
#[test]
fn env_shlvl_in_exec_repl() {
let actual = nu!(r#"