Skip to content

Commit 3936328

Browse files
committed
fix bug
1 parent ec8b2f0 commit 3936328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

devops/scripts/benchmarking/compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def compare_to_median(test_name: str, median_path: str, test_csv_path: str):
5656
# This relative path is sys.argv[1], while the name of the csv file we are
5757
# comparing against is sys.argv[2].
5858
common.load_configs()
59-
test_name = os.path.basename(test_dir_relpath)
60-
median_path = f"{common.PERF_RES_PATH}/{sys.argv[1]}/{test_name}-median.csv"
59+
test_name = os.path.basename(sys.argv[1])
6160
test_csv_path = f"{common.OUTPUT_PATH}/{sys.argv[1]}/{sys.argv[2]}"
61+
median_path = f"{common.PERF_RES_PATH}/{sys.argv[1]}/{test_name}-median.csv"
6262

6363
if not os.path.isfile(test_csv_path):
6464
print("Invalid test file provided: " + test_csv_path)

0 commit comments

Comments
 (0)