[MM-28080] scripts/test: do not remove existing data directory (#15347)

* scripts/test: do not remove existing data directory

* Update scripts/test.sh

Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
This commit is contained in:
Ibrahim Serdar Acikgoz
2020-08-27 14:00:47 +03:00
committed by GitHub
parent 90ef61f74c
commit eaabf96b1b

View File

@@ -14,7 +14,7 @@ PACKAGES_COMMA=$(echo $PACKAGES | tr ' ' ',')
echo "Packages to test: $PACKAGES"
find . -name 'cprofile*.out' -exec sh -c 'rm "{}"' \;
find . -type d -name data -not -path './vendor/*' | xargs rm -rf
find . -type d -name data -not -path './vendor/*' -not -path './data' | xargs rm -rf
$GO test $GOFLAGS -run=$TESTS $TESTFLAGS -v -timeout=2000s -covermode=count -coverpkg=$PACKAGES_COMMA -exec $DIR/test-xprog.sh $PACKAGES 2>&1 > >( tee output )
EXIT_STATUS=$?