From 2ad81cce62d3b6f0bde466a96e6e4777cba6c389 Mon Sep 17 00:00:00 2001
From: Nicolas KAROLAK <nicolas@karolak.fr>
Date: Tue, 2 Jan 2018 16:49:33 +0100
Subject: [PATCH] add conditional argument to skip tests

---
 launcher.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/launcher.sh b/launcher.sh
index cf46eef0..4970e9be 100755
--- a/launcher.sh
+++ b/launcher.sh
@@ -94,20 +94,20 @@ case "$1" in
 		monitor
 		campusmanager
 		mediaserver
-		tests
+		[[ $2 = "--skip-tests" ]] || tests
 	;;
 
 	"w")
 		init
 		worker
-		tests
+		[[ $2 = "--skip-tests" ]] || tests
 	;;
 
 	"cm")
 		init
 		monitor
 		campusmanager
-		tests
+		[[ $2 = "--skip-tests" ]] || tests
 	;;
 
 	"cache")
@@ -132,7 +132,7 @@ case "$1" in
 
 	*)
 		echo "
-Usage: $0 [arg]
+Usage: $0 [arg] [--skip-tests]
 ms          build a MediaServer & CM
 w           build a Worker
 cm          build a Campus-Manager
-- 
GitLab