Do not rely on cat output in tests
The error messages of `cat` can change a bit, for example if a different locale is set. This uses a shell test instead. Signed-off-by: Etienne Millon <me@emillon.org>
This commit is contained in:
parent
baa5b773b5
commit
772c1c05ac
|
@ -1,6 +1,5 @@
|
|||
$ cat dune-project
|
||||
cat: dune-project: No such file or directory
|
||||
[1]
|
||||
$ [ -e dune-project ] || echo File does not exist
|
||||
File does not exist
|
||||
$ mkdir src
|
||||
$ echo '(alias (name runtest) (action (progn)))' > src/dune
|
||||
$ dune build
|
||||
|
|
Loading…
Reference in New Issue