mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Add assert to ensure test exist
This commit is contained in:
@@ -9,6 +9,11 @@ fn yaml_files_in_test_dir(dir: &str) -> Vec<PathBuf> {
|
||||
base_path.push("tests");
|
||||
base_path.push(dir);
|
||||
|
||||
assert!(
|
||||
base_path.exists(),
|
||||
"Unable to locate test files. Did you init git submoules?"
|
||||
);
|
||||
|
||||
WalkDir::new(base_path)
|
||||
.into_iter()
|
||||
.filter_map(|e| e.ok())
|
||||
|
||||
Reference in New Issue
Block a user