From 874d09ce02fbb1c5537a53b72a0222e078eefcfb Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 3 Jan 2019 22:58:28 +0100 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- test/suite_dissectors/dissectorstest.py | 4 ++-- 1 file 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', -- cgit v1.2.3