summaryrefslogtreecommitdiffstats
path: root/run-tests.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-01-01 19:43:22 +0100
committerFlorian Pritz <bluewind@xinu.at>2018-01-01 19:43:22 +0100
commiteb00062b4e7aba506988433320827a435bfb9176 (patch)
tree0f99676255f945a8b72ef2546a11655376b5d388 /run-tests.sh
parent5ed1157fb8bc16dc4063441f96bacf21ee6b2e3f (diff)
Use temporary directory for testsuite uploads
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'run-tests.sh')
-rwxr-xr-xrun-tests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/run-tests.sh b/run-tests.sh
index 89db85ee9..db6a977f4 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -7,6 +7,7 @@ export ENVIRONMENT="testsuite"
export COLLECT_COVERAGE=1
startdir="$(dirname "$0")"
+datadir="testsuite-tmp"
die() {
echo "$@" >&2
@@ -28,9 +29,13 @@ trap cleanup EXIT INT
cleanup() {
pkill -P $$
php index.php tools drop_all_tables
+ rm -rf "$datadir"
}
+rm -rf "$datadir"
+
mkdir -p test-coverage-data
+mkdir -p "$datadir"
php=(php)
if ((COLLECT_COVERAGE)); then