From 86f7f53f853650cb3315157f94a8034c1a777ffd Mon Sep 17 00:00:00 2001 From: Douglas <32344964+NotTheDr01ds@users.noreply.github.com> Date: Thu, 2 Jan 2025 23:22:04 -0500 Subject: [PATCH] Run SHLVL tests sequentially (#14727) Tests for #14707 are causing hangs which are preventing `toolkit test` from completing on some systems. This appears to be due to the use of `-i` to force interactive mode, which is required in order to update the `SHLVL`. Both tests are likely attempting to acquire the terminal at the same time, and one is hanging as a result. This is a temporary fix which runs both of these tests sequentially. It's temporary because we need to find a solution which doesn't use `-i`, since any other future `-it` test will cause the same situation again. --- tests/shell/environment/env.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/shell/environment/env.rs b/tests/shell/environment/env.rs index eab193684fc..98f1e1ded86 100644 --- a/tests/shell/environment/env.rs +++ b/tests/shell/environment/env.rs @@ -238,10 +238,7 @@ fn env_shlvl() { "); assert_eq!(actual.out, "6"); -} -#[test] -fn env_shlvl_in_exec() { let actual = nu!(" $env.SHLVL = 29 nu -i -c \"exec nu -i -c 'print $env.SHLVL'\"