Fix benchmarks not being detected in exported version (#106)

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
YYF2333
2025-02-02 03:21:56 +08:00
committed by GitHub
parent 3f6fd7f94e
commit 314f67fa45

View File

@@ -44,6 +44,9 @@ class TestID:
func test_ids_from_path(path: String) -> Array[TestID]:
var rv : Array[TestID] = []
# Recognize paths in an exported project correctly.
path = path.trim_suffix(".remap")
# Check for runnable tests.
for extension in languages.keys():
if not path.ends_with(extension):