summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-09-11 16:19:18 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-09-11 16:19:18 +0200
commitafd2f3f77c31556f5f39f79766a7287c6cb587f2 (patch)
treed631a8520b77c4118c7d30c5c07809684c329a54
parent96777572e6255e51cce011437e50099cf95d61ad (diff)
downloadsigrok-test-afd2f3f77c31556f5f39f79766a7287c6cb587f2.tar.gz
sigrok-test-afd2f3f77c31556f5f39f79766a7287c6cb587f2.zip
pdtest: Only return non-zero code upon errors.
-rwxr-xr-xdecoder/pdtest1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/pdtest b/decoder/pdtest
index fa72934..f9dd140 100755
--- a/decoder/pdtest
+++ b/decoder/pdtest
@@ -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")