Skip to content
Snippets Groups Projects
Commit 2ac98769 authored by Morris Jette's avatar Morris Jette
Browse files

Make regression test more robust

Expect was failing periodicallly due to apparent timing problems
parent 68deb76d
No related branches found
No related tags found
No related merge requests found
...@@ -127,12 +127,15 @@ expect { ...@@ -127,12 +127,15 @@ expect {
# #
# Reading a second prompt is required by some versions of Expect # Reading a second prompt is required by some versions of Expect
# #
if { 0 } { set timeout 1
expect { expect {
-re $prompt { -re $prompt {
} exp_continue
}
timeout {
} }
} }
set timeout 30
# #
# Run a job step to get allocated processor count and affinity # Run a job step to get allocated processor count and affinity
......
...@@ -136,6 +136,19 @@ expect { ...@@ -136,6 +136,19 @@ expect {
} }
} }
#
# Reading a second prompt is required by some versions of Expect
#
set timeout 1
expect {
-re $prompt {
exp_continue
}
timeout {
}
}
set timeout 30
# #
# Run a job step to get allocated processor count and affinity # Run a job step to get allocated processor count and affinity
# #
......
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