fix hubtest --no-clean when failure (#1088)
This commit is contained in:
parent
458dcd1979
commit
4c306187a6
|
@ -120,7 +120,7 @@ cscli hubtest create my-scenario-test --parsers crowdsecurity/nginx --scenarios
|
||||||
LogFile: logFileName,
|
LogFile: logFileName,
|
||||||
LogType: logType,
|
LogType: logType,
|
||||||
IgnoreParsers: ignoreParsers,
|
IgnoreParsers: ignoreParsers,
|
||||||
Labels: labels,
|
Labels: labels,
|
||||||
}
|
}
|
||||||
|
|
||||||
configFilePath := filepath.Join(testPath, "config.yaml")
|
configFilePath := filepath.Join(testPath, "config.yaml")
|
||||||
|
@ -255,7 +255,7 @@ cscli hubtest create my-scenario-test --parsers crowdsecurity/nginx --scenarios
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !forceClean {
|
if !forceClean && !noClean {
|
||||||
prompt := &survey.Confirm{
|
prompt := &survey.Confirm{
|
||||||
Message: fmt.Sprintf("\nDo you want to remove runtime folder for test '%s'? (default: Yes)", test.Name),
|
Message: fmt.Sprintf("\nDo you want to remove runtime folder for test '%s'? (default: Yes)", test.Name),
|
||||||
Default: true,
|
Default: true,
|
||||||
|
|
Loading…
Reference in a new issue