@@ -1930,8 +1930,8 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
1930
1930
@subcommand ('test' ,
1931
1931
dict (name = ['-t' , '--toolchain' ], help = 'Compile toolchain. Example: ARM, uARM, GCC_ARM, IAR' ),
1932
1932
dict (name = ['-m' , '--mcu' ], help = 'Compile target. Example: K64F, NUCLEO_F401RE, NRF51822...' ),
1933
- dict (name = '--list- compile' , dest = 'list_compile ' , action = 'store_true' , help = 'List all tests that can be built' ),
1934
- dict (name = '--list- run' , dest = 'list_run ' , action = 'store_true' , help = 'List all built tests that can be ran' ),
1933
+ dict (name = '--compile-list ' , dest = 'compile_list ' , action = 'store_true' , help = 'List all tests that can be built' ),
1934
+ dict (name = '--run-list ' , dest = 'run_list ' , action = 'store_true' , help = 'List all built tests that can be ran' ),
1935
1935
dict (name = '--compile' , dest = 'compile_only' , action = 'store_true' , help = 'Only compile tests' ),
1936
1936
dict (name = '--run' , dest = 'run_only' , action = 'store_true' , help = 'Only run tests' ),
1937
1937
dict (name = ['-n' , '--tests-by-name' ], dest = 'tests_by_name' , help = 'Limit the tests to a list (ex. test1,test2,test3)' ),
@@ -1941,7 +1941,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
1941
1941
dict (name = '--test-spec' , dest = "test_spec" , help = "Destination path for the test spec file used when running tests (only override if a test spec file that can be used by the Greentea automated test tool. The default is placed in the build directory" ),
1942
1942
help = 'Find, build and run tests' ,
1943
1943
description = ("Find, build, and run tests in a program and libraries" ))
1944
- def test_ (toolchain = None , mcu = None , list_compile = False , list_run = False , compile_only = False , run_only = False , tests_by_name = None , source = False , build = False , clean = False , test_spec = None ):
1944
+ def test_ (toolchain = None , mcu = None , compile_list = False , run_list = False , compile_only = False , run_only = False , tests_by_name = None , source = False , build = False , clean = False , test_spec = None ):
1945
1945
# Gather remaining arguments
1946
1946
args = remainder
1947
1947
# Find the root of the program
@@ -1971,7 +1971,7 @@ def test_(toolchain=None, mcu=None, list_compile=False, list_run=False, compile_
1971
1971
test_spec = os .path .join (build , 'test_spec.json' )
1972
1972
1973
1973
# Determine if building and running tests
1974
- build_and_run_tests = not list_compile and not list_run and not compile_only and not run_only
1974
+ build_and_run_tests = not compile_list and not run_list and not compile_only and not run_only
1975
1975
1976
1976
if compile_only or build_and_run_tests :
1977
1977
cmd = ['python' , '-u' , os .path .join (tools_dir , 'test.py' )]
@@ -1999,7 +1999,7 @@ def test_(toolchain=None, mcu=None, list_compile=False, list_run=False, compile_
1999
1999
except ProcessException :
2000
2000
error ('Failed to run test runner' )
2001
2001
2002
- if list_compile :
2002
+ if compile_list :
2003
2003
cmd = ['python' , '-u' , os .path .join (tools_dir , 'test.py' ), '--list' ]
2004
2004
cmd += (['-n' , tests_by_name ] if tests_by_name else [])
2005
2005
cmd += (['-v' ] if very_verbose else [])
@@ -2009,7 +2009,7 @@ def test_(toolchain=None, mcu=None, list_compile=False, list_run=False, compile_
2009
2009
except ProcessException :
2010
2010
error ('Failed to run buildable tests listing script' )
2011
2011
2012
- if list_run :
2012
+ if run_list :
2013
2013
cmd = ['mbedgt' , '--test-spec' , test_spec , '--list' ]
2014
2014
cmd += (['-n' , tests_by_name ] if tests_by_name else [])
2015
2015
cmd += (['-V' ] if verbose else [])
0 commit comments