speccpu: --outputdir--output_root

This commit is contained in:
2025-04-23 13:59:02 +08:00
parent c2ba7f45ab
commit f833cfaa52
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ class SPEC:
workload, workload,
"-c", "-c",
config, config,
*(["--outputdir", str(output_root)] if output_root else []), *(["--output_root", str(output_root)] if output_root else []),
*benchmarks, *benchmarks,
] ]

View File

@@ -77,7 +77,7 @@ class TestSPEC:
spec = SPEC(Path("/path/to/spec")) spec = SPEC(Path("/path/to/spec"))
output_dir = Path("/output/dir") output_dir = Path("/output/dir")
cmd = spec.mkcmd_runcpu("myconfig", ["benchmark1"], output_root=output_dir) cmd = spec.mkcmd_runcpu("myconfig", ["benchmark1"], output_root=output_dir)
assert "--outputdir" in cmd assert "--output_root" in cmd
assert str(output_dir) in cmd assert str(output_dir) in cmd