Skip to content

Commit

Permalink
test(pkg): make tests reproducible (ocaml#8649)
Browse files Browse the repository at this point in the history
do not rely on the output of ls

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg authored Sep 14, 2023
1 parent b982acf commit a5449fb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/blackbox-tests/test-cases/pkg/opam-package-copy-files.t
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ We expect that the files in the files directory of the opam repository get copie
lock file.

$ lock_dir="dune.lock/with-patch.files"
$ ls $lock_dir && cat $lock_dir/$fname1
ls: cannot access 'dune.lock/with-patch.files': No such file or directory
[2]
$ ls $lock_dir && cat $lock_dir/$fname2
ls: cannot access 'dune.lock/with-patch.files': No such file or directory
[2]
$ [ -d $lock_dir ] && cat $lock_dir/$fname1
[1]
$ [ -d $lock_dir ] && cat $lock_dir/$fname2
[1]

0 comments on commit a5449fb

Please sign in to comment.