run-tests: Swap the nesting of a loop/condition

There's no point in running the whole loop if each iteration is
going to be skipped.
This commit is contained in:
Martin Storsjö committed 2022-09-16 19:43:40 +03:00
1 parent 332193b7ec
commit 2013c9c165
1 file changed
+5 -5
+5 -5
View File
@@ -248,12 +248,12 @@ for arch in $ARCHS; do
done
$COPY $COPYFILES
fi
for test in $RUN_TESTS; do
file=$test.exe
if [ -n "$RUN" ]; then
if [ -n "$RUN" ]; then
for test in $RUN_TESTS; do
file=$test.exe
$RUN $file
fi
done
done
fi
cd ..
done
echo All tests succeeded