From 5fbe39c38ab106af4054aafb328623551b04ca31 Mon Sep 17 00:00:00 2001 From: MrArmonius Date: Fri, 9 Jul 2021 15:23:21 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20script=20bash=20de=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_automatic/start_test.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test_automatic/start_test.sh b/test_automatic/start_test.sh index 37aff5a..38fe706 100755 --- a/test_automatic/start_test.sh +++ b/test_automatic/start_test.sh @@ -1,7 +1,11 @@ #!/bin/bash +trap "kill 0" EXIT + export BOTTIN_DEFAULT_ADMIN_PW=$(openssl rand -base64 24) echo $BOTTIN_DEFAULT_ADMIN_PW -./consul agent -dev > /dev/null 2>&1 & +consul agent -dev > /dev/null 2>&1 & +sleep 2 ./bottin > /dev/null 2>&1 & -go run integration.go +sleep 1 +./test_automatic/integration