Skip to content
Snippets Groups Projects
Commit 898c4a65 authored by Georg Sauthoff's avatar Georg Sauthoff
Browse files

switch to a kernel thread that is always available

NB: previous choice isn't available on (some?) Fedora 39 systems
parent dc01468b
No related branches found
No related tags found
No related merge requests found
...@@ -228,7 +228,7 @@ def test_no_such_pid(): ...@@ -228,7 +228,7 @@ def test_no_such_pid():
@skip_if_isolated @skip_if_isolated
@pytest.mark.parametrize("opts", [ [ '-e'], ['-x'] ]) @pytest.mark.parametrize("opts", [ [ '-e'], ['-x'] ])
def test_no_perm(opts): def test_no_perm(opts):
q = subprocess.run(['pgrep', '-u', 'root', '^writeback$'], q = subprocess.run(['pgrep', '-u', 'root', '^kthreadd$'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True,
check=True) check=True)
pid = int(q.stdout) pid = int(q.stdout)
......
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