From: Uwe Hermann Date: Thu, 11 Sep 2014 14:19:18 +0000 (+0200) Subject: pdtest: Only return non-zero code upon errors. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=afd2f3f77c31556f5f39f79766a7287c6cb587f2;p=sigrok-test.git pdtest: Only return non-zero code upon errors. --- 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")