Let remote unit test exit on first error

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-10-31 10:04:36 +01:00
parent 0afeba201b
commit 495325dc51

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
set -x set -ex
. ./test.rc . ./test.rc
MSG="kilroy" MSG="kilroy"
@ -7,11 +7,11 @@ MSG="kilroy"
tshark -Qni lo -w ${CAP} port ${PORT} 2>/dev/null & tshark -Qni lo -w ${CAP} port ${PORT} 2>/dev/null &
#tcpdump -qlni lo -w ${CAP} port ${PORT} 2>/dev/null & #tcpdump -qlni lo -w ${CAP} port ${PORT} 2>/dev/null &
PID="$!" PID="$!"
sleep 2 sleep 5
../src/logger -u ${SOCK} ${MSG} ../src/logger -u ${SOCK} ${MSG}
sleep 2 sleep 5
kill -TERM ${PID} kill -TERM ${PID}
wait ${PID} wait ${PID}