mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-07 00:39:34 +08:00
fix: tests
This commit is contained in:
@@ -96,6 +96,9 @@ func runStepShell(r *SessionRunner, step *TStep) (stepResult *StepResult, err er
|
||||
if err != nil {
|
||||
if exitCode == shell.ExpectExitCode {
|
||||
// get expected error
|
||||
log.Warn().Err(err).
|
||||
Int("exitCode", exitCode).
|
||||
Msg("get expected error, ignore")
|
||||
stepResult.Success = true
|
||||
return stepResult, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user