File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1246,6 +1246,10 @@ def test_suite(argv):
12461246
12471247 # switch to the full test directory
12481248 os .chdir (suite .full_test_dir )
1249+ if args .delete_exe :
1250+ suite .log .log ("removing executable from test directory..." )
1251+ os .remove (executable )
1252+
12491253
12501254 #--------------------------------------------------------------------------
12511255 # Clean Cmake build and install directories if needed
Original file line number Diff line number Diff line change @@ -395,6 +395,8 @@ def get_args(arg_string=None):
395395 help = "log file to write output to (in addition to stdout" )
396396 suite_options .add_argument ("--clean_testdir" , action = "store_true" ,
397397 help = "remove individual test directory after each passed test" )
398+ suite_options .add_argument ("--delete_exe" , action = "store_true" ,
399+ help = "remove executable in test directory after each passed test" )
398400
399401 comp_options = parser .add_argument_group ("comparison options" ,
400402 "options that control how the comparisons are done" )
You can’t perform that action at this time.
0 commit comments