From 64c5d6d6104c0483a043556b7d39c6199e5df8bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 17 Jul 2017 16:10:53 +0300 Subject: [PATCH] Control npm testing with environment variables The NPM based tests can now skip the stopping of the docker-compose cluster by defining the SKIP_SHUTDOWN environment variable. --- test/run_npm_test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/run_npm_test.sh b/test/run_npm_test.sh index 97b2445ff..3c6821da7 100755 --- a/test/run_npm_test.sh +++ b/test/run_npm_test.sh @@ -90,6 +90,9 @@ npm test rval=$? # Stop MariaDB servers -docker-compose down -v +if [ -z "$SKIP_SHUTDOWN" ] +then + docker-compose down -v +fi exit $rval