From: Karl Palsson Date: Tue, 11 Apr 2017 21:31:10 +0000 (+0000) Subject: args: make pdtest -l behave as advertised. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=94ac3e40c019045adba59fac4620a9549ec91fcf;p=sigrok-test.git args: make pdtest -l behave as advertised. 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 --- diff --git a/decoder/pdtest b/decoder/pdtest index da548e3..4c15f3d 100755 --- a/decoder/pdtest +++ b/decoder/pdtest @@ -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.")