thoroughness level 2 - use --strict
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
fail_fast="true"
|
fail_fast="true"
|
||||||
thoroughness=0
|
thoroughness=0
|
||||||
|
flags=""
|
||||||
if [ "$1" = "no_fail_fast" ]; then
|
if [ "$1" = "no_fail_fast" ]; then
|
||||||
fail_fast="false"
|
fail_fast="false"
|
||||||
thoroughness="${2:-1}"
|
thoroughness="${2:-1}"
|
||||||
@@ -51,7 +52,7 @@ function test_folder() {
|
|||||||
folder="$(pwd)/test/replays/$1"
|
folder="$(pwd)/test/replays/$1"
|
||||||
replays="$folder"/*.xml
|
replays="$folder"/*.xml
|
||||||
for replay in $replays; do
|
for replay in $replays; do
|
||||||
(cd "$EXE_DIR" && "./$EXE" --replay "$replay") || echo "Replay failed: $replay" && [ "$fail_fast" = "true" ] && exit 1
|
(cd "$EXE_DIR" && "./$EXE" --replay "$replay" $flags) || echo "Replay failed: $replay" && [ "$fail_fast" = "true" ] && exit 1
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,4 +64,9 @@ case $thoroughness in
|
|||||||
test_folder short
|
test_folder short
|
||||||
test_folder long
|
test_folder long
|
||||||
;;
|
;;
|
||||||
|
2)
|
||||||
|
flags="--strict"
|
||||||
|
test_folder short
|
||||||
|
test_folder long
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
Reference in New Issue
Block a user