From eea58e536bcc4b4fadf09e3c2ce29368d22e5a76 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 12 Aug 2015 17:36:28 +0200 Subject: Properly stop on SIGINT in autotrigger test --- tests/autotrigger.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/autotrigger.sh') diff --git a/tests/autotrigger.sh b/tests/autotrigger.sh index f6bbd07..44fc22f 100755 --- a/tests/autotrigger.sh +++ b/tests/autotrigger.sh @@ -14,12 +14,14 @@ function pci { } echo "Starting the grabber" -pci -g -o /dev/null --run-time 12000000 --verbose 10 & +pci -g -o /dev/null --run-time 1002000000 --verbose 10 & pid=$! +trap "{ /usr/bin/kill -s INT $!; }" SIGINT + sleep 0.1 pci -w 9040 80004a01 -sleep 10 +sleep 1000 pci -w 9040 80000201 echo "Waiting grabber to finish" -- cgit v1.2.3