run-tests cd into each test directory before running it

This commit is contained in:
Daniel Barlow
2022-09-23 17:21:43 +01:00
parent 1bc8fd7873
commit 7a4314baee
4 changed files with 14 additions and 12 deletions

View File

@@ -3,7 +3,9 @@
export DEVICE=${DEVICE-qemu}
export TMPDIR=${TMPDIR-/tmp}
NIX_PATH=liminix=`pwd`:$NIX_PATH
for i in tests/*/run.sh; do
echo $i
$i $* || exit 1
(cd `dirname $i`; ./`basename $i` $* ) || exit 1
done