diff options
author | Karl Palsson <karlp@tweak.net.au> | 2017-04-11 21:31:10 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-05-13 16:08:17 +0200 |
commit | 94ac3e40c019045adba59fac4620a9549ec91fcf (patch) | |
tree | 84bb407b6e5d4f7182917b1ae116f5ee4983479d | |
parent | 810494f47bc946119c10b3d1cd0c9b4834cb9b07 (diff) | |
download | sigrok-test-94ac3e40c019045adba59fac4620a9549ec91fcf.tar.gz sigrok-test-94ac3e40c019045adba59fac4620a9549ec91fcf.zip |
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 <karlp@tweak.net.au>
-rwxr-xr-x | decoder/pdtest | 2 |
1 files changed, 1 insertions, 1 deletions
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.") |