Skip to content

Commit e112096

Browse files
yedayakscop
authored andcommitted
test(mod{probe,info}): Don't expect intel completion
These tests failed on WSL, which doesn't complete anything that starts with intel. I don't have a machine to test, but I expect this will also fail on arm or amd machines. Instead, we expect it to complete "dummy", a network driver.
1 parent 3e51b6c commit e112096

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/t/test_modinfo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ class TestModinfo:
88
def test_1(self, completion):
99
assert completion
1010

11-
# "in": intel*, ...
11+
# "du": dummy, ...
1212
@pytest.mark.complete(
13-
"modinfo in",
13+
"modinfo du",
1414
xfail="! ls /lib/modules/%s &>/dev/null"
1515
% subprocess.check_output(
1616
"uname -r 2>/dev/null || " "echo non-existent-kernel", shell=True
@@ -21,8 +21,8 @@ def test_1(self, completion):
2121
def test_2(self, completion):
2222
assert completion
2323

24-
# "in": intel*, ...
25-
@pytest.mark.complete("modinfo -k non-existent-kernel in")
24+
# "du": dummy, ...
25+
@pytest.mark.complete("modinfo -k non-existent-kernel du")
2626
def test_3(self, completion):
2727
assert not completion
2828

test/t/test_modprobe.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ class TestModprobe:
88
def test_1(self, completion):
99
assert completion == "l"
1010

11-
# "in": intel*, ...
11+
# "du": dummy, ...
1212
@pytest.mark.complete(
13-
"modprobe in",
13+
"modprobe du",
1414
xfail="! ls /lib/modules/%s &>/dev/null"
1515
% subprocess.check_output(
1616
"uname -r 2>/dev/null || " "echo non-existent-kernel", shell=True
@@ -21,8 +21,8 @@ def test_1(self, completion):
2121
def test_2(self, completion):
2222
assert completion
2323

24-
# "in": intel*, ...
25-
@pytest.mark.complete("modprobe -S non-existent-kernel in")
24+
# "du": dummy, ...
25+
@pytest.mark.complete("modprobe -S non-existent-kernel du")
2626
def test_3(self, completion):
2727
assert not completion
2828

0 commit comments

Comments
 (0)