]> sigrok.org Git - sigrok-test.git/commitdiff
args: make pdtest -l behave as advertised.
authorKarl Palsson <redacted>
Tue, 11 Apr 2017 21:31:10 +0000 (21:31 +0000)
committerUwe Hermann <redacted>
Sat, 13 May 2017 14:08:17 +0000 (16:08 +0200)
Help says -l should list tests. Make it do so.
You can still do "-l uart" to see only uart tests, but -l by itself now
does what you expect.

Signed-off-by: Karl Palsson <redacted>
decoder/pdtest

index da548e3c73ecd2bf4857bf7d6836b0dad5781bcc..4c15f3dc7cd1f65d4aa0d9c6b7864e2d58da550e 100755 (executable)
@@ -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.")