fix(cmd): Also allow 0 outputs when using test-wait parameter (#11013)

This commit is contained in:
Thomas Casteleyn 2022-04-21 23:00:03 +02:00 committed by GitHub
parent 5c98cb2aad
commit da31a19d5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ func runAgent(ctx context.Context,
}
}
if !*fTest && len(c.Outputs) == 0 {
if !(*fTest || *fTestWait != 0) && len(c.Outputs) == 0 {
return errors.New("Error: no outputs found, did you provide a valid config file?")
}
if *fPlugins == "" && len(c.Inputs) == 0 {