Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions regtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,10 @@ def test_suite(argv):
shutil.rmtree(file_path)
# switch to the full test directory
os.chdir(suite.full_test_dir)
if args.delete_exe:
suite.log.log("removing executable from test directory...")
os.remove(executable)


#--------------------------------------------------------------------------
# Clean Cmake build and install directories if needed
Expand Down
2 changes: 2 additions & 0 deletions test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ def get_args(arg_string=None):
help="log file to write output to (in addition to stdout")
suite_options.add_argument("--clean_testdir", action="store_true",
help="remove individual test directory after each passed test")
suite_options.add_argument("--delete_exe", action="store_true",
help="remove executable in test directory after each passed test")

comp_options = parser.add_argument_group("comparison options",
"options that control how the comparisons are done")
Expand Down
Loading