r2r.v: Fix Success: 0 when running cmd tests (#15948)

This commit is contained in:
Khairul Azhar Kasmiran 2020-02-10 22:20:49 +08:00 committed by GitHub
parent a80802c608
commit eac05b99f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -523,6 +523,9 @@ fn (r2r mut R2R) run_cmd_test(test R2RCmdTest) {
else if test.expect_err != '' && errstr.trim_space() != test.expect_err {
mark = r2r.test_failed(test, test.expect_err, errstr)
}
else {
r2r.success++
}
}
time_end := time.ticks()
times := time_end - time_start