From 495325dc51f720413fd7256200de79d466777235 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 31 Oct 2019 10:04:36 +0100 Subject: [PATCH] Let remote unit test exit on first error Signed-off-by: Joachim Nilsson --- test/remote.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/remote.sh b/test/remote.sh index 4948ac9..79ffbcc 100755 --- a/test/remote.sh +++ b/test/remote.sh @@ -1,5 +1,5 @@ #!/bin/sh -set -x +set -ex . ./test.rc MSG="kilroy" @@ -7,11 +7,11 @@ MSG="kilroy" tshark -Qni lo -w ${CAP} port ${PORT} 2>/dev/null & #tcpdump -qlni lo -w ${CAP} port ${PORT} 2>/dev/null & PID="$!" -sleep 2 +sleep 5 ../src/logger -u ${SOCK} ${MSG} -sleep 2 +sleep 5 kill -TERM ${PID} wait ${PID}