diff options
author | Dario Lombardo <lomato@gmail.com> | 2019-08-03 22:07:55 +0200 |
---|---|---|
committer | Dario Lombardo <lomato@gmail.com> | 2019-08-03 20:45:51 +0000 |
commit | 3109f526cd26394733e6356c1abeee13ce9ec1cb (patch) | |
tree | 4b54e34c40bde9a9cab5044fe6325927cc39e748 /test | |
parent | b1e74c527b43e67d73dc2df4b0963c7aa41a160f (diff) |
test: skip some tests on big endian machines.
Dumpcap doesn't support fifos with streams created on a machine with
different endianess. Until dumpcap will support that, we need to skip
some tests so the whole test suite can pass.
Ping-Bug: 15754
Change-Id: Ia7fdf833715bf975fcee76968a7c1d75d084bd6f
Reviewed-on: https://code.wireshark.org/review/34173
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/suite_capture.py | 8 | ||||
-rw-r--r-- | test/suite_dissection.py | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/suite_capture.py b/test/suite_capture.py index eb0448ec47..e94b3d754d 100644 --- a/test/suite_capture.py +++ b/test/suite_capture.py @@ -576,16 +576,24 @@ class case_dumpcap_ringbuffer(subprocesstest.SubprocessTestCase): class case_dumpcap_pcapng_sections(subprocesstest.SubprocessTestCase): def test_dumpcap_pcapng_single_in_single_out(self, check_dumpcap_pcapng_sections): '''Capture from a single pcapng source using Dumpcap and write a single file''' + if sys.byteorder == 'big': + fixtures.skip('this test is supported on little endian only') check_dumpcap_pcapng_sections(self) def test_dumpcap_pcapng_single_in_multi_out(self, check_dumpcap_pcapng_sections): '''Capture from a single pcapng source using Dumpcap and write two files''' + if sys.byteorder == 'big': + fixtures.skip('this test is supported on little endian only') check_dumpcap_pcapng_sections(self, multi_output=True) def test_dumpcap_pcapng_multi_in_single_out(self, check_dumpcap_pcapng_sections): '''Capture from two pcapng sources using Dumpcap and write a single file''' + if sys.byteorder == 'big': + fixtures.skip('this test is supported on little endian only') check_dumpcap_pcapng_sections(self, multi_input=True) def test_dumpcap_pcapng_multi_in_multi_out(self, check_dumpcap_pcapng_sections): '''Capture from two pcapng sources using Dumpcap and write two files''' + if sys.byteorder == 'big': + fixtures.skip('this test is supported on little endian only') check_dumpcap_pcapng_sections(self, multi_input=True, multi_output=True) diff --git a/test/suite_dissection.py b/test/suite_dissection.py index 772b40f5ca..eac8529d03 100644 --- a/test/suite_dissection.py +++ b/test/suite_dissection.py @@ -13,6 +13,7 @@ import os.path import subprocesstest import unittest import fixtures +import sys @fixtures.mark_usefixtures('test_env') @fixtures.uses_fixtures @@ -218,4 +219,6 @@ class case_decompress_smb2(subprocesstest.SubprocessTestCase): self.extract_compressed_payload(cmd_tshark, capture_file, 2) def test_smb311_read_lznt1(self, cmd_tshark, capture_file): + if sys.byteorder == 'big': + fixtures.skip('this test is supported on little endian only') self.extract_compressed_payload(cmd_tshark, capture_file, 3) |