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:
1 parent
332193b7ec
commit
2013c9c165
1 file changed
+5
-5
+5
-5
@@ -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
|
||||
Reference in new issue
Block a user