]> sigrok.org Git - sigrok-test.git/commitdiff
Fix issue in -s output.
authorUwe Hermann <redacted>
Mon, 5 Jun 2017 22:08:07 +0000 (00:08 +0200)
committerUwe Hermann <redacted>
Mon, 5 Jun 2017 22:08:07 +0000 (00:08 +0200)
Option values are strings, not numbers.

This fixes:

$ ./decoder/pdtest -s jitter
Testcase: jitter/toim4243
  Protocol decoder: jitter
    Channel clk=3
    Channel sig=2
Error: %d format: a number is required, not str

decoder/pdtest

index 4c15f3dc7cd1f65d4aa0d9c6b7864e2d58da550e..1cc071f65c438682b39d00407afb165af597a3fd 100755 (executable)
@@ -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'])