]> sigrok.org Git - libsigrokdecode.git/commitdiff
pdtest: Use new exception output.
authorBert Vermeulen <redacted>
Tue, 8 Jul 2014 19:43:58 +0000 (21:43 +0200)
committerBert Vermeulen <redacted>
Tue, 8 Jul 2014 19:46:43 +0000 (21:46 +0200)
tests/pdtest

index f70b743bd1ddc6c32a308dad88a506903c430041..55718be0a8e344713cd7bb3276d59b95e3f5b6bf 100755 (executable)
@@ -379,7 +379,7 @@ def run_tests(tests, fix=False):
                         os.unlink(outfile)
                     if op['type'] == 'exception' and 'error' in results[-1]:
                         # filter out the exception we were looking for
-                        reg = "^Error: srd: Protocol decoder instance %s: %s:" % (op['pd'], op['match'])
+                        reg = "^Error: srd: %s:" % op['match']
                         if re.match(reg, results[-1]['error']):
                             # found it, not an error
                             results[-1].pop('error')