]> sigrok.org Git - sigrok-test.git/blobdiff - decoder/pdtest
pdtest: Only return non-zero code upon errors.
[sigrok-test.git] / 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')
+                            errors -= 1
                     if VERBOSE:
                         if 'diff' in results[-1]:
                             INFO("Output mismatch")