/alps/ipecamera

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to tests/autotrigger.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2015-08-12 15:36:28 UTC
  • Revision ID: csa@suren.me-20150812153628-k3pj4rjywz9xzw8f
Properly stop on SIGINT in autotrigger test

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
}
15
15
 
16
16
echo "Starting the grabber"
17
 
pci -g -o /dev/null --run-time 12000000 --verbose 10 &
 
17
pci -g -o /dev/null --run-time 1002000000 --verbose 10 &
18
18
pid=$!
19
19
 
 
20
trap "{ /usr/bin/kill -s INT $!; }" SIGINT
 
21
 
20
22
sleep 0.1
21
23
pci -w 9040 80004a01
22
 
sleep 10
 
24
sleep 1000
23
25
pci -w 9040 80000201
24
26
 
25
27
echo "Waiting grabber to finish"