summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGabriel <gabriel.stedman@zynstra.com>2022-01-29 11:05:09 (GMT)
committerGabriel <gabriel.stedman@zynstra.com>2022-01-29 11:05:09 (GMT)
commitc9d2c7197710d0f532a786a02daa5ba994438de2 (patch)
tree4b3cb1ea89de838d96465a64a63d7843f46043e4 /tests
parentb3a7ca21cefc51fd425f6afeb9b87670013cf42b (diff)
downloadlz4-c9d2c7197710d0f532a786a02daa5ba994438de2.zip
lz4-c9d2c7197710d0f532a786a02daa5ba994438de2.tar.gz
lz4-c9d2c7197710d0f532a786a02daa5ba994438de2.tar.bz2
Ensure list test exits with appropiate exit code on failure
Diffstat (limited to 'tests')
-rw-r--r--tests/test-lz4-list.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-lz4-list.py b/tests/test-lz4-list.py
index b8d844a..39f2253 100644
--- a/tests/test-lz4-list.py
+++ b/tests/test-lz4-list.py
@@ -5,6 +5,7 @@ import glob
import os
import tempfile
import unittest
+import sys
SIZES = [3, 11] # Always 2 sizes
MIB = 1048576
@@ -278,5 +279,6 @@ def generate_files():
if __name__ == '__main__':
cleanup()
generate_files()
- unittest.main(verbosity=2, exit=False)
+ ret = unittest.main(verbosity=2, exit=False)
cleanup(silent=True)
+ sys.exit(not ret.result.wasSuccessful())