File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ def main():
135
135
parser = argparse .ArgumentParser (description = 'Compliance tests for cwltool' )
136
136
parser .add_argument ("--test" , type = str , help = "YAML file describing test cases" , required = True )
137
137
parser .add_argument ("--basedir" , type = str , help = "Basedir to use for tests" , default = "." )
138
+ parser .add_argument ("-l" , action = "store_true" , help = "List tests then exit" )
138
139
parser .add_argument ("-n" , type = int , default = None , help = "Run a specific test" )
139
140
parser .add_argument ("--tool" , type = str , default = "cwl-runner" ,
140
141
help = "CWL runner executable to use (default 'cwl-runner'" )
@@ -161,6 +162,11 @@ def main():
161
162
if cwl ["class" ] == "CommandLineTool" :
162
163
tests .append (t )
163
164
165
+ if args .l :
166
+ for i , t in enumerate (tests ):
167
+ print "[%i] %s" % (i + 1 , t ["doc" ].strip ())
168
+ return 1
169
+
164
170
if args .n is not None :
165
171
sys .stderr .write ("\r Test [%i/%i] " % (args .n , len (tests )))
166
172
rt = run_test (args , args .n - 1 , tests [args .n - 1 ])
You can’t perform that action at this time.
0 commit comments