summaryrefslogtreecommitdiff
path: root/tests/pdtest
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-12-11 12:39:50 +0100
committerBert Vermeulen <bert@biot.com>2013-12-11 12:39:50 +0100
commitde556baee957a019ac5c16caf1305f5441adf30c (patch)
treecf8255781192329ef51a5023a9325f21e589bcbd /tests/pdtest
parentf8c88ebc5b33052de0b88690577af4611aa3709a (diff)
downloadlibsigrokdecode-de556baee957a019ac5c16caf1305f5441adf30c.tar.gz
libsigrokdecode-de556baee957a019ac5c16caf1305f5441adf30c.zip
pdtest: Always sanity-check all testcases.
Diffstat (limited to 'tests/pdtest')
-rwxr-xr-xtests/pdtest12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/pdtest b/tests/pdtest
index 59348d6..1258d27 100755
--- a/tests/pdtest
+++ b/tests/pdtest
@@ -46,7 +46,7 @@ def usage(msg=None):
sys.exit()
-def check_testcase(tc):
+def check_tclist(tc):
if 'pdlist' not in tc or not tc['pdlist']:
return("No protocol decoders")
if 'input' not in tc or not tc['input']:
@@ -167,11 +167,11 @@ def parse_testfile(path, pd, tc, op_type, op_class):
tclist = []
else:
tclist = [target_tc]
- for t in tclist:
- error = check_testcase(t)
- if error:
- ERR("Error in %s: %s" % (path, error))
- return []
+ for t in tclist:
+ error = check_tclist(t)
+ if error:
+ ERR("Error in %s: %s" % (path, error))
+ return []
return tclist