mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 06:17:27 -08:00
unittest: check for rule files existence (#6075)
Signed-off-by: akerele abraham <abrahamakerele38@gmail.com>
This commit is contained in:
parent
de0a772b8e
commit
9d39fdad0c
|
@ -145,6 +145,9 @@ func resolveAndGlobFilepaths(baseDir string, utf *unitTestFile) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if len(m) <= 0 {
|
||||||
|
fmt.Fprintln(os.Stderr, " WARNING: no file match pattern", rf)
|
||||||
|
}
|
||||||
globbedFiles = append(globbedFiles, m...)
|
globbedFiles = append(globbedFiles, m...)
|
||||||
}
|
}
|
||||||
utf.RuleFiles = globbedFiles
|
utf.RuleFiles = globbedFiles
|
||||||
|
|
Loading…
Reference in a new issue