Feature #1820: add testing without outputs (#2446)

This commit is contained in:
ingosus
2017-04-13 22:59:28 +03:00
committed by Daniel Nelson
parent ff4f5286ea
commit 2e306bf13d
2 changed files with 2 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ func reloadLoop(
log.Fatal("E! " + err.Error())
}
}
if len(c.Outputs) == 0 {
if !*fTest && len(c.Outputs) == 0 {
log.Fatalf("E! Error: no outputs found, did you provide a valid config file?")
}
if len(c.Inputs) == 0 {