diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-08-12 17:36:28 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-08-12 17:36:28 +0200 |
commit | eea58e536bcc4b4fadf09e3c2ce29368d22e5a76 (patch) | |
tree | 6afaa4a62701a79f94520357295901069bcd60fd | |
parent | 8b83e894d3b8859703304936b1b21f3d3ff6d211 (diff) | |
download | ipecamera-eea58e536bcc4b4fadf09e3c2ce29368d22e5a76.tar.gz ipecamera-eea58e536bcc4b4fadf09e3c2ce29368d22e5a76.tar.bz2 ipecamera-eea58e536bcc4b4fadf09e3c2ce29368d22e5a76.tar.xz ipecamera-eea58e536bcc4b4fadf09e3c2ce29368d22e5a76.zip |
Properly stop on SIGINT in autotrigger test
-rwxr-xr-x | tests/autotrigger.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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" |