forked from osmocom/wireshark
Test: Remove an unused routine.
dump_failed_output didn't do anything, so remove it. Change-Id: If2c1c48ff38987bcd535e95585784eb9981a0f4e Reviewed-on: https://code.wireshark.org/review/37752 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
f0d456bf2d
commit
af6140d643
11
test/test.py
11
test/test.py
|
@ -37,15 +37,6 @@ def find_test_ids(suite, all_ids):
|
|||
else:
|
||||
all_ids.append(suite.id())
|
||||
|
||||
def dump_failed_output(suite):
|
||||
if hasattr(suite, '__iter__'):
|
||||
for s in suite:
|
||||
dump_failures = getattr(s, 'dump_failures', None)
|
||||
if dump_failures:
|
||||
dump_failures()
|
||||
else:
|
||||
dump_failed_output(s)
|
||||
|
||||
def main():
|
||||
if sys.version_info[0] < 3:
|
||||
print("Unit tests require Python 3")
|
||||
|
@ -142,8 +133,6 @@ def main():
|
|||
# for unittest compatibility (not needed with pytest)
|
||||
fixtures_ws.fixtures.destroy_session()
|
||||
|
||||
dump_failed_output(run_suite)
|
||||
|
||||
if test_result.errors:
|
||||
sys.exit(2)
|
||||
|
||||
|
|
Loading…
Reference in New Issue