[Script] Add task cleanup to setup script

This commit is contained in:
tangxifan 2020-10-24 12:00:03 -06:00
parent 163108c2c5
commit 7125a1ed5b
1 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,12 @@ for task_file in get_list_of_task_config_files(skywater_openfpga_task_dirpath, "
# - Go back
os.chdir(openfpga_root_path);
for task_name in openfpga_task_list:
# Remove all the previous runs in the openfpga task to ensure a clean start
logging.info("Clean up previous runs for openfpga task: " + task_name + "...");
cmd = "python3 openfpga_flow/scripts/run_fpga_task.py " + task_name + " --debug --show_thread_logs --remove_run_dir all";
os.system(cmd);
logging.info("Done");
# Execute new task run
cmd = "python3 openfpga_flow/scripts/run_fpga_task.py " + task_name + " --debug --show_thread_logs";
logging.info("Running openfpga task: " + task_name + "...");
os.system(cmd);