From 06f34bb4c7136e66306fdb41466bccbdd8f62ffd Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Tue, 15 Jun 2021 19:09:37 +0200 Subject: test script: clean data directory with env var flag instead of every req --- tests/test.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/test.sh b/tests/test.sh index 159e435..f2b9d86 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -56,9 +56,9 @@ cleanuploads() { mkdir -p "$RESULTDIR" } -if [ "$1" == "stl-leaks" ]; then - cleanuploads +[ ! -z "$CLEAN" ] && cleanuploads +if [ "$1" == "stl-leaks" ]; then announce "Testing ASCII STL Parsing" ( echo "echo" @@ -78,8 +78,6 @@ if [ "$1" == "stl-leaks" ]; then ) | checkleaks elif [ "$1" == "stl-upload" ]; then - cleanuploads - popd file="$(realpath $2)" if [ ! -e "$file" ]; then @@ -95,11 +93,9 @@ elif [ "$1" == "stl-upload" ]; then cat "$file" | wc -c cat "$file" echo "$name" - ) | checkleaks + ) | connect elif [ "$1" == "auth-upload" ]; then - cleanuploads - ( echo "echo" -- cgit v1.2.3-71-gd317