summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/test/llnl/util/tty/log.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/spack/spack/test/llnl/util/tty/log.py b/lib/spack/spack/test/llnl/util/tty/log.py
index 39e65f0388..c6cef00977 100644
--- a/lib/spack/spack/test/llnl/util/tty/log.py
+++ b/lib/spack/spack/test/llnl/util/tty/log.py
@@ -432,11 +432,15 @@ def test_foreground_background_output(
# output should contain mostly "on" lines, but may contain an "off"
# or two. This is because the controller toggles echo by sending "v" on
# stdin to the minion, but this is not synchronized with our locks.
- # It's good enough for a test, though. We allow at most 2 "off"'s in
+ # It's good enough for a test, though. We allow at most 4 "off"'s in
# the output to account for the race.
+ #
+ # Originally we only allowed 2, but GitHub's macOS runners seem to be
+ # very slow, and frequently we get 3 "off"'s. Increased limit to 4 to
+ # account for this. Real errors should still be caught with this limit.
assert (
['forced output', 'on'] == uniq(output) or
- output.count("off") <= 2 # if controller_fd is a bit slow
+ output.count("off") <= 4 # if controller_fd is a bit slow
)
# log should be off for a while, then on, then off