diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-05-11 18:57:08 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-05-11 18:57:08 +0000 |
commit | f471a317dc69396a27040f78fade60b0bbabcb17 (patch) | |
tree | 333979d9521573dae35b04667a8a237b5862655b /test/suite-io.sh | |
parent | ec71e49011eff3d9c6053d95f61fdee7540e5b8b (diff) |
test.sh: revise tests to handle revised capinfos output.
svn path=/trunk/; revision=28332
Diffstat (limited to 'test/suite-io.sh')
-rwxr-xr-x | test/suite-io.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/suite-io.sh b/test/suite-io.sh index 909cff804e..51d4f0135b 100755 --- a/test/suite-io.sh +++ b/test/suite-io.sh @@ -50,7 +50,7 @@ io_step_input_file() { # ok, we got a capture file, does it contain exactly 10 packets? $CAPINFOS ./testout.pcap > ./testout.txt - grep -i 'Number of packets: 4' ./testout.txt > /dev/null + grep -Ei 'Number of packets:[[:blank:]]+4' ./testout.txt > /dev/null if [ $? -eq 0 ]; then test_step_ok else @@ -81,7 +81,7 @@ io_step_output_piping() { # ok, we got a capture file, does it contain exactly 10 packets? $CAPINFOS ./testout.pcap > ./testout2.txt 2>&1 - grep -i 'Number of packets: 4' ./testout2.txt > /dev/null + grep -Ei 'Number of packets:[[:blank:]]+4' ./testout2.txt > /dev/null if [ $? -eq 0 ]; then test_step_ok else @@ -113,7 +113,7 @@ io_step_input_piping() { # ok, we got a capture file, does it contain exactly 10 packets? $CAPINFOS ./testout.pcap > ./testout2.txt 2>&1 - grep -i 'Number of packets: 4' ./testout2.txt > /dev/null + grep -Ei 'Number of packets:[[:blank:]]+4' ./testout2.txt > /dev/null if [ $? -eq 0 ]; then test_step_ok else |