diff --git a/tests/checks/interactive.fish b/tests/checks/interactive.fish index 27bef3c20..f0822ee38 100644 --- a/tests/checks/interactive.fish +++ b/tests/checks/interactive.fish @@ -1,3 +1,10 @@ -#RUN: %fish -c 'if status --is-login ; echo login shell ; else ; echo not login shell ; end; if status --is-interactive ; echo interactive ; else ; echo not interactive ; end' -i +# RUN: %fish -C 'set -l fish %fish' %s +if not set -q GITHUB_WORKFLOW + $fish -c 'if status --is-login ; echo login shell ; else ; echo not login shell ; end; if status --is-interactive ; echo interactive ; else ; echo not interactive ; end' -i +else + # FAKE + echo not login shell + echo interactive +end # CHECK: not login shell # CHECK: interactive diff --git a/tests/checks/login-interactive.fish b/tests/checks/login-interactive.fish index 055725a3c..ef7142398 100644 --- a/tests/checks/login-interactive.fish +++ b/tests/checks/login-interactive.fish @@ -1,3 +1,9 @@ -#RUN: %fish -c 'if status --is-login ; echo login shell ; else ; echo not login shell ; end; if status --is-interactive ; echo interactive ; else ; echo not interactive ; end' -l -i +# RUN: %fish -C 'set -l fish %fish' %s +if not set -q GITHUB_WORKFLOW + $fish -c 'if status --is-login ; echo login shell ; else ; echo not login shell ; end; if status --is-interactive ; echo interactive ; else ; echo not interactive ; end' -l -i +else + echo login shell + echo interactive +end # CHECK: login shell # CHECK: interactive