diff options
author | Peter Wu <peter@lekensteyn.nl> | 2019-01-03 22:58:28 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-01-04 05:01:25 +0000 |
commit | 874d09ce02fbb1c5537a53b72a0222e078eefcfb (patch) | |
tree | 6133878900fae500afa35473d141b565be881d25 /test/suite_dissectors | |
parent | 6c5da2804b00ae28b4837f56fa38671753ac64f8 (diff) |
test/dissectorstest: assert that text2pcap and tshark runs
Fail early if these commands fail.
Change-Id: I6ba6cfa4b0b68c7282b79204b4f2bfedfefa4326
Reviewed-on: https://code.wireshark.org/review/31352
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'test/suite_dissectors')
-rw-r--r-- | test/suite_dissectors/dissectorstest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/suite_dissectors/dissectorstest.py b/test/suite_dissectors/dissectorstest.py index 7c799d8795..d2227ed9e1 100644 --- a/test/suite_dissectors/dissectorstest.py +++ b/test/suite_dissectors/dissectorstest.py @@ -72,14 +72,14 @@ class _dissection_validator_real: f.write("0 {}\n".format(hex_string)) # generate our pcap file by feeding the messages to text2pcap - self.test_case.runProcess(( + self.test_case.assertRun(( self.cmd_text2pcap, '-u', '1234,1234', text_file, pcap_file )) # generate our dissection from our pcap file - tshark_proc = self.test_case.runProcess(( + tshark_proc = self.test_case.assertRun(( self.cmd_tshark, '-r', pcap_file, '-T', 'json', |