File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1223,14 +1223,14 @@ def __getitem__(self, key):
1223
1223
def test_known (string ):
1224
1224
i = int (string )
1225
1225
if i >= 0 and i < len (TESTS ) : return i
1226
- else : raise ArgumentTypeError ("{0} does not index a test" .format (i ))
1226
+ else : raise ArgumentTypeError ("{0} does not index a test. The accepted range is 0 to {1} " .format (i , len ( TEST_MAP ) - 1 ))
1227
1227
1228
1228
def test_name_known (string ):
1229
1229
nlist = string .split (',' )
1230
1230
for test_id in nlist :
1231
1231
if test_id not in TEST_MAP .keys ():
1232
1232
if getattr (ps , "test_alias" , None ) is None or \
1233
1233
ps .test_alias .get (test_id , "" ) not in TEST_MAP .keys ():
1234
- raise ArgumentTypeError ("Program with name '%s ' not found" % test_id )
1234
+ raise ArgumentTypeError ("Program with name '{0} ' not found. Supported tests are {1}" . format ( test_id , ", " . join ( TEST_MAP . keys ())) )
1235
1235
1236
1236
return [TEST_MAP [n ].n for n in nlist ]
You can’t perform that action at this time.
0 commit comments