Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b5f680ad authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

demo/source.should: non-existent !OUTPUT_FILE should make the test fail

see #64
parent 737de2f9
No related branches found
No related tags found
2 merge requests!30Draft: CI Docker,!29Do not run the commands when unmet !REQUIRES or !NO_LAUNCHER, fix also !OUTPUT_FILE
......@@ -11,3 +11,20 @@ echo "world" >> hw.txt
$ Correct content in 'hw.txt'
bl: hello world
!OUTPUT_FILE:
# Not existent files make the test fail
(cat demo/tests/foo.should ; echo "!OUTPUT_FILE: 42.txt" ; cat demo/tests/bar.should) > demo/tests/file-not-found.should
./should -v demo/tests/file-not-found.should ; true
$ The first tests, in foo.should, are launched
b: echo foo
: 1: foo
$ The second tests, in bar.should, are launched, but nothing is analyzed
b: Exit code is 0
b: echo bar
: Skipping tests: 42.txt not found
0: 1: bar
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment