Only run the cpu plugin twice when using -test

This can be easily extended to other plugins that need it by tacking
their name onto the switch statement. Also eliminating the unused
TestAllPlugins code and cleaning up some stray Printlns
This commit is contained in:
Cameron Sparr
2015-09-23 13:54:22 -07:00
parent b12b804f0a
commit aad6a7e262
3 changed files with 16 additions and 45 deletions

View File

@@ -109,16 +109,10 @@ func main() {
}
if *fTest {
if *fConfig != "" {
err = ag.Test()
} else {
err = ag.TestAllPlugins()
}
err = ag.Test()
if err != nil {
log.Fatal(err)
}
return
}