[tracker-miners/tracker-miners-2.2: 7/47] functional-tests: Fix regression in extractor tests that was hiding test failures



commit d8096d906ba110dc03ca364af03b1c6d4b4491dc
Author: Sam Thursfield <sam afuera me uk>
Date:   Tue Jun 4 21:59:47 2019 +0200

    functional-tests: Fix regression in extractor tests that was hiding test failures
    
    Embarassingly, we were running the extractor tests, checking if the
    output was what we expected, then ignoring errors due to a missing
    'raise' statement. This is a regression from fc281ca88e345d0862ce4b6.

 tests/functional-tests/400-extractor-metadata.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tests/functional-tests/400-extractor-metadata.py 
b/tests/functional-tests/400-extractor-metadata.py
index f1b062afa..628b063de 100755
--- a/tests/functional-tests/400-extractor-metadata.py
+++ b/tests/functional-tests/400-extractor-metadata.py
@@ -99,6 +99,7 @@ class GenericExtractionTestCase(TrackerExtractTestCase):
             self.assert_extract_result_matches_spec(self.spec['metadata'], result, self.file_to_extract, 
self.descfile)
         except AssertionError as e:
             print("\ntracker-extract returned: %s" % json.dumps(result, indent=4))
+            raise
 
 
 def run_all():


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]