mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-30 00:15:22 +08:00
Makefile/tests: use return values to communicate errors
This commit is contained in:
parent
7874cdf52a
commit
3106cffb65
@ -302,7 +302,8 @@ doc/refman.pdf: doc
|
|||||||
#
|
#
|
||||||
|
|
||||||
test: $(PROGRAMS) fish_tests
|
test: $(PROGRAMS) fish_tests
|
||||||
./fish_tests; cd tests; ../fish <test.fish;
|
./fish_tests
|
||||||
|
cd tests; ../fish <test.fish;
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,11 +40,11 @@ if [ "$argv" != '-n' ]
|
|||||||
|
|
||||||
if test $res = ok;
|
if test $res = ok;
|
||||||
echo File test.fish tested ok
|
echo File test.fish tested ok
|
||||||
|
exit 0
|
||||||
else
|
else
|
||||||
echo File test.fish failed tests
|
echo File test.fish failed tests
|
||||||
|
exit 1
|
||||||
end;
|
end;
|
||||||
|
|
||||||
exit
|
|
||||||
end
|
end
|
||||||
|
|
||||||
echo Testing high level script functionality
|
echo Testing high level script functionality
|
||||||
|
Loading…
x
Reference in New Issue
Block a user