Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mass-0910 committed Aug 22, 2022
2 parents 4f95b3b + 251621c commit 94073e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions hsptest.hsp
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,6 @@ if is_exist_option("--stdout") {
spend_time = strf("%.2f", double(timeGetTime() - start_time) / 1000.0)

mes ""
if test_pass == 0 && test_fail == 0 {
centered_mes " no tests ran in " + spend_time + " seconds ", FOREGROUND_WHITE, "="
} else : if test_fail == 0 {
centered_mes " all " + str(test_pass) + " passed in " + spend_time + " seconds ", FOREGROUND_GREEN, "="
} else {
centered_mes " " + str(test_fail) + " failed, " + str(test_pass) + " passed in " + spend_time + " seconds ", FOREGROUND_RED, "="
}

if is_exist_option("--logfile") {
init_logfile_module hspver_str, version, dir_cur
logfile_path = get_option_arg("--logfile")
Expand All @@ -246,4 +238,12 @@ if is_exist_option("--logfile") {
mes "output the log file to " + dir_cur + "\\" + logfile_path
}

if test_pass == 0 && test_fail == 0 {
centered_mes " no tests ran in " + spend_time + " seconds ", FOREGROUND_WHITE, "="
} else : if test_fail == 0 {
centered_mes " all " + str(test_pass) + " passed in " + spend_time + " seconds ", FOREGROUND_GREEN, "="
} else {
centered_mes " " + str(test_fail) + " failed, " + str(test_pass) + " passed in " + spend_time + " seconds ", FOREGROUND_RED, "="
}

end test_fail
4 changes: 2 additions & 2 deletions parse_result.hsp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ stdoutから結果をパースする
error_message = result_match(0, 4)
} else {
result = "FAIL"
error_line = -1
error_line = "-1"
error_file = "?"
error_message = "crash!!!"
error_message = "HSP3 runtime crashed!!!"
}
matches callstack_match, stdout, callstack_pattern, 1, 0, 0
matched_num = stat
Expand Down

0 comments on commit 94073e8

Please sign in to comment.