Skip to content
Snippets Groups Projects
Commit ee72ee8c authored by Nicolas Joly's avatar Nicolas Joly Committed by Morris Jette
Browse files

Fix parsing for NetBSD sleep error message

parent 61ad32e8
No related branches found
No related tags found
No related merge requests found
......@@ -210,7 +210,7 @@ cset max_stress_tasks 4
#
# The error message that the "sleep" command prints when we run "sleep aaa".
#
cset sleep_error_message "(invalid time interval)|(bad character in argument)"
cset sleep_error_message "(invalid time interval)|(bad character in argument)|(usage: sleep seconds)"
# Other common variables
set alpha "\[a-zA-Z\]+"
......
......@@ -181,7 +181,7 @@ for {set index 0} {$index < $array_end} {incr index} {
set err_match 0
spawn $bin_cat test$test_id-$job_id\_$index\.error
expect {
-re "invalid time" {
-re "$sleep_error_message" {
send_user "\nDo not worry this error is expected\n"
incr err_match
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment