change: PersistentPreRun log setting

This commit is contained in:
debugtalk
2021-10-18 10:13:27 +08:00
parent a270af016c
commit cc16ad51d6
5 changed files with 7 additions and 17 deletions
-5
View File
@@ -16,11 +16,6 @@ var runCmd = &cobra.Command{
$ hrp run examples/ # run testcases in specified folder`,
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
hrp.SetLogLevel(logLevel)
if !logJSON {
hrp.SetLogPretty()
}
var paths []hrp.ITestCase
for _, arg := range args {
paths = append(paths, &hrp.TestCasePath{Path: arg})