diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-31 18:32:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-31 18:32:19 +0300 |
commit | 9600cb9073edca551ee0a96e61fbcd8e01662ec5 (patch) | |
tree | 6e54b5989185cc4830e2cef11515cd4b7fcdd111 /tools | |
parent | c53f473bcbebbe30fc0d310c77b122e140d3f757 (diff) | |
download | manaplus-9600cb9073edca551ee0a96e61fbcd8e01662ec5.tar.gz manaplus-9600cb9073edca551ee0a96e61fbcd8e01662ec5.tar.bz2 manaplus-9600cb9073edca551ee0a96e61fbcd8e01662ec5.tar.xz manaplus-9600cb9073edca551ee0a96e61fbcd8e01662ec5.zip |
Allow separate tests run each time from clean configuration file.
Last configuration file will be uploaded as artifact.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ci/scripts/separateunittests.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/ci/scripts/separateunittests.sh b/tools/ci/scripts/separateunittests.sh index 9db32ead8..6e69069e8 100755 --- a/tools/ci/scripts/separateunittests.sh +++ b/tools/ci/scripts/separateunittests.sh @@ -7,10 +7,14 @@ export LIST=./logs/testslist.txt IFS=' ' +export HOME="logs/home" + for str in $(cat ${LIST}) do unset IFS declare -a "arr=($str)" + rm -rf "${HOME}" + mkdir "${HOME}" echo ./src/manaplustests --test-case=\"${arr[0]}\" --subcase=\"${arr[1]}\" ./src/manaplustests --test-case="${arr[0]}" --subcase="${arr[1]}" || exit 1 done |