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
+2
-2
+2
-2
@@ -248,12 +248,12 @@ for arch in $ARCHS; do
|
|||||||
done
|
done
|
||||||
$COPY $COPYFILES
|
$COPY $COPYFILES
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$RUN" ]; then
|
||||||
for test in $RUN_TESTS; do
|
for test in $RUN_TESTS; do
|
||||||
file=$test.exe
|
file=$test.exe
|
||||||
if [ -n "$RUN" ]; then
|
|
||||||
$RUN $file
|
$RUN $file
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
echo All tests succeeded
|
echo All tests succeeded
|
||||||
Reference in new issue
Block a user