Skip to content

Commit ed118a4

Browse files
committed
tests: workqueue: skip some tests on live systems
Any tests that access individual work items should not be run on live systems. Similar to smp tests, the system is too busy and we run into too many runtime errors, so the tests are flaky. Signed-off-by: Stephen Brennan <[email protected]>
1 parent c9f2fd0 commit ed118a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_workqueue.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
33
import drgn
4+
import pytest
45
from drgn.helpers.linux.cpumask import for_each_online_cpu
56
from drgn.helpers.linux.percpu import per_cpu
67
from drgn.helpers.linux.percpu import per_cpu_ptr
@@ -86,27 +87,32 @@ def test_for_each_pwq(prog: drgn.Program) -> None:
8687
assert pwqs.sort() == cpu_pwqs_list.sort()
8788

8889

90+
@pytest.mark.skip_live
8991
def test_for_each_pending_work_on_cpu(prog: drgn.Program) -> None:
9092
for work in wq.for_each_pending_work_on_cpu(prog, 0):
9193
pass
9294

9395

96+
@pytest.mark.skip_live
9497
def test_for_each_pending_work_in_pool(prog: drgn.Program) -> None:
9598
pool = per_cpu(prog["cpu_worker_pools"], 0)[0].address_of_()
9699
for work in wq.for_each_pending_work_in_pool(pool):
97100
pass
98101

99102

103+
@pytest.mark.skip_live
100104
def test_for_each_pending_work_of_pwq(prog: drgn.Program) -> None:
101105
cpu_pwqs_0 = wq.workqueue_get_pwq(prog["system_wq"], 0)
102106
for work in wq.for_each_pending_work_of_pwq(cpu_pwqs_0):
103107
pass
104108

105109

110+
@pytest.mark.skip_live
106111
def test_show_all_workqueues(prog: drgn.Program) -> None:
107112
wq.show_all_workqueues(prog)
108113

109114

115+
@pytest.mark.skip_live
110116
def test_show_unexpired_delayed_works(
111117
prog: drgn.Program,
112118
) -> None:

0 commit comments

Comments
 (0)