enowars5-service-stldoctor

STL-Analyzing A/D Service for ENOWARS5 in 2021
git clone https://git.sinitax.com/sinitax/enowars5-service-stldoctor
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 06f34bb4c7136e66306fdb41466bccbdd8f62ffd
parent e13e2c357356887b9b0b5886ba7c0003e7225791
Author: Louis Burda <quent.burda@gmail.com>
Date:   Tue, 15 Jun 2021 19:09:37 +0200

test script: clean data directory with env var flag instead of every req

Diffstat:
Mtests/test.sh | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git 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"