Skip to content

Commit 38799d3

Browse files
committed
Use basename for test results instead of full path
This is a regression introduced by 3342dad, causing the resulting JSON to contain full paths instead of just the basename.
1 parent 3845efd commit 38799d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ScoreMetric(enum.Enum):
2020

2121
def get_tests_for_suite(suite, config):
2222
return sorted(
23-
str(f) for f in Path(suite).iterdir()
23+
f for f in Path(suite).iterdir()
2424
if f.is_file() and f.suffix == config["suffix"]
2525
)
2626

@@ -120,7 +120,7 @@ def main():
120120
continue
121121
raise
122122

123-
results[suite][test_file] = {
123+
results[suite][test_file.name] = {
124124
key.value: {
125125
"mean": mean,
126126
"stdev": stdev,

0 commit comments

Comments
 (0)