summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-31 18:32:19 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-31 18:32:19 +0300
commit9600cb9073edca551ee0a96e61fbcd8e01662ec5 (patch)
tree6e54b5989185cc4830e2cef11515cd4b7fcdd111
parentc53f473bcbebbe30fc0d310c77b122e140d3f757 (diff)
downloadplus-9600cb9073edca551ee0a96e61fbcd8e01662ec5.tar.gz
plus-9600cb9073edca551ee0a96e61fbcd8e01662ec5.tar.bz2
plus-9600cb9073edca551ee0a96e61fbcd8e01662ec5.tar.xz
plus-9600cb9073edca551ee0a96e61fbcd8e01662ec5.zip
Allow separate tests run each time from clean configuration file.
Last configuration file will be uploaded as artifact.
-rwxr-xr-xtools/ci/scripts/separateunittests.sh4
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