X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-test.git;a=blobdiff_plain;f=decoder%2Fpdtest;h=1cc071f65c438682b39d00407afb165af597a3fd;hp=da548e3c73ecd2bf4857bf7d6836b0dad5781bcc;hb=c1ac6ddafd8c836a2e50e3c0c8586245a78ea9a0;hpb=810494f47bc946119c10b3d1cd0c9b4834cb9b07 diff --git a/decoder/pdtest b/decoder/pdtest index da548e3..1cc071f 100755 --- a/decoder/pdtest +++ b/decoder/pdtest @@ -485,7 +485,7 @@ def show_tests(tests): for label, channel in pd['channels']: print(" Channel %s=%d" % (label, channel)) for option, value in pd['options']: - print(" Option %s=%d" % (option, value)) + print(" Option %s=%s" % (option, value)) if 'stack' in tc: print(" Stack: %s" % ' '.join(tc['stack'])) print(" Input: %s" % tc['input']) @@ -561,7 +561,7 @@ ret = 0 try: if args: testlist = get_tests(args) - elif opt_all: + elif opt_all or opt_list: testlist = get_tests(os.listdir(tests_dir)) else: usage("Specify either -a or tests.")