]> sigrok.org Git - sigrok-test.git/commitdiff
pdtest: Only return non-zero code upon errors.
authorUwe Hermann <redacted>
Thu, 11 Sep 2014 14:19:18 +0000 (16:19 +0200)
committerUwe Hermann <redacted>
Thu, 11 Sep 2014 14:19:18 +0000 (16:19 +0200)
decoder/pdtest

index fa72934fc87e4197a7c7bd43d32ce2a701e600a6..f9dd140729201305d7048fd2f2f4d490ab21e70f 100755 (executable)
@@ -383,6 +383,7 @@ def run_tests(tests, fix=False):
                         if re.match(reg, results[-1]['error']):
                             # found it, not an error
                             results[-1].pop('error')
                         if re.match(reg, results[-1]['error']):
                             # found it, not an error
                             results[-1].pop('error')
+                            errors -= 1
                     if VERBOSE:
                         if 'diff' in results[-1]:
                             INFO("Output mismatch")
                     if VERBOSE:
                         if 'diff' in results[-1]:
                             INFO("Output mismatch")