diff --git a/flow/test/at_test_helper.sh b/flow/test/at_test_helper.sh deleted file mode 100755 index bc1f86cdfe..0000000000 --- a/flow/test/at_test_helper.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -set -eoux pipefail - -cd "$(dirname $(readlink -f $0))/../" - -# Setting args (and setting default values for testing) -AT_TEST_SLUG=${2:-resume_check} - -echo "Now running $AT_TEST_SLUG" - -# change directory to ../ -# cd .. -# echo "Install dependencies in Venv" -# python3 -m venv .venv -# source .venv/bin/activate -# pip install -r tools/AutoTuner/requirements.txt - - -if [ $AT_TEST_SLUG == "resume_check" ]; then - echo "Now running args.resume check" - python3 -m unittest tools.AutoTuner.test.resume_check -fi diff --git a/flow/test/autotuner_report.py b/flow/test/autotuner_report.py deleted file mode 100644 index 2d192cdd41..0000000000 --- a/flow/test/autotuner_report.py +++ /dev/null @@ -1,40 +0,0 @@ -import csv -import os - -def read_csv(file_path): - out = [] - with open(file_path, 'r') as file: - reader = csv.reader(file) - for idx, row in enumerate(reader): - if idx == 0: continue - out.append(row) - return out - -def write_csv(lst, file_path): - with open(file_path, 'w') as file: - writer = csv.writer(file) - writer.writerows(lst) - -if __name__ == "__main__": - cur_dir = os.path.dirname(__file__) - log_dir = os.path.join(cur_dir, "../../flow/logs/asap7/gcd") - os.chdir(log_dir) - - # Get the latest updated dir in the data directory. - latest_dir = max(os.listdir("."), key=os.path.getmtime) - folder_name = os.path.basename(latest_dir) - - # Get all the progress.csv file recursively - progress_files = [] - for root, _, files in os.walk(latest_dir): - for file in files: - if file == "progress.csv": - progress_files.append(os.path.join(root, file)) - - # Read the progress.csv file - progress = [] - for file in progress_files: - progress += read_csv(file) - - # Write the progress.csv file - write_csv(progress, f"{folder_name}_progress.csv")