unittest: check for rule files existence (#6075)

Signed-off-by: akerele abraham <abrahamakerele38@gmail.com>
This commit is contained in:
akerele abraham 2019-11-18 22:54:52 +01:00 committed by Ganesh Vernekar
parent de0a772b8e
commit 9d39fdad0c

View file

@ -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