Skip to content

Commit ee770f7

Browse files
Improve validation script by skipping tests where dataset was not defined
1 parent 544a606 commit ee770f7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

validation/test_fcls.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ def run(cmd, datasets_dict):
8787
return Result.SKIPPED # returning SKIPPED to avoid counting as a failure, but skipping the test since dataset is not available
8888
cmd = cmd.replace(old_input_dataset, input_dataset)
8989
else:
90-
print(f"Warning: Dataset name '{input_dataset}' not found in datasets file. Using as-is.")
90+
if input_dataset.startswith("{"):
91+
print(f"Warning: Dataset name '{input_dataset}' looks like it should be in the datasets file but it can't be found. Skipping test...")
92+
return Result.SKIPPED
93+
else:
94+
print(f"Warning: Dataset name '{input_dataset}' not found in datasets file. Using as-is.")
9195

9296
# Check for filelist
9397
filelist_path = Path("../filelists/") / f"{input_dataset}.list"

0 commit comments

Comments
 (0)