diff --git a/test/test_attach.py b/test/test_attach.py index f98fada5..ee7b85d7 100644 --- a/test/test_attach.py +++ b/test/test_attach.py @@ -137,7 +137,7 @@ def test_where_multiprocess(py): assert lines[join_line] == 1, result.stdout -@flaky +@flaky(max_runs=3) @requires_sudo @allpythons() def test_where_kernel(py): @@ -146,10 +146,10 @@ def test_where_kernel(py): result = austinp("-kw", str(p.pid)) assert result.returncode == 0 - assert "Process" in result.stdout - assert "Thread" in result.stdout - assert "sleepy.py" in result.stdout - assert "" in result.stdout - assert "__select" in result.stdout - assert "libc" in result.stdout - assert "do_syscall" in result.stdout + assert "Process" in result.stdout, result.stdout + assert "Thread" in result.stdout, result.stdout + assert "sleepy.py" in result.stdout, result.stdout + assert "" in result.stdout, result.stdout + assert "__select" in result.stdout, result.stdout + assert "libc" in result.stdout, result.stdout + assert "do_syscall" in result.stdout, result.stdout diff --git a/test/test_fork.py b/test/test_fork.py index f55d4575..a80a264f 100644 --- a/test/test_fork.py +++ b/test/test_fork.py @@ -50,7 +50,7 @@ def test_fork_wall_time(austin, py, heap): result = austin("-i", "2ms", *heap, *python(py), target("target34.py")) assert py in (result.stderr or result.stdout), result.stderr or result.stdout - assert len(processes(result.stdout)) == 1 + assert len(processes(result.stdout)) == 1, compress(result.stdout) ts = threads(result.stdout) assert len(ts) == 2, compress(result.stdout) @@ -177,6 +177,7 @@ def test_fork_multiprocess(py): assert has_pattern(result.stdout, "target_mp.py:fact:"), result.stdout +@flaky @allpythons() def test_fork_full_metrics(py): result = austin("-i", "10ms", "-f", *python(py), target("target34.py"))