From eec0fb37f3190ea54aed6d63c1164533f590f08e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 9 Feb 2020 11:16:56 +0100 Subject: [PATCH] tests: harden test_xdist_verbose --- testing/test_terminal.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/testing/test_terminal.py b/testing/test_terminal.py index cc2f6d5fb69..498cebb5e06 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -1702,6 +1702,22 @@ def test_xdist_verbose(self, many_tests_files, testdir, monkeypatch): r"\[gw\d\] \[\s*\d+%\] PASSED test_foobar.py::test_foobar\[1\]", ] ) + output.stdout.fnmatch_lines_random( + [ + line.translate(TRANS_FNMATCH) + for line in [ + "test_bar.py::test_bar[0] ", + "test_foo.py::test_foo[0] ", + "test_foobar.py::test_foobar[0] ", + "[gw?] [ 5%] PASSED test_*[?] ", + "[gw?] [ 10%] PASSED test_*[?] ", + "[gw?] [ 55%] PASSED test_*[?] ", + "[gw?] [ 60%] PASSED test_*[?] ", + "[gw?] [ 95%] PASSED test_*[?] ", + "[gw?] [100%] PASSED test_*[?] ", + ] + ] + ) def test_capture_no(self, many_tests_files, testdir): output = testdir.runpytest("-s")