Skip interactive tests on github actions for now

Github actions doesn't run this in a terminal, so the `fish -i` tests won't really work.

But still, it might be nicer than Travis.
This commit is contained in:
Fabian Homborg 2020-03-31 19:34:05 +02:00
parent 66b0fa72aa
commit d54609bd63
2 changed files with 15 additions and 2 deletions

View file

@ -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

View file

@ -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