Skip to content

Commit 0861966

Browse files
committed
test(fprintd): --finger doesn't work without dbus
`fprintd-enroll --finger` doesn't actually complete anything if dbus isn't running. Check if dbus is running using 'busctl list'.
1 parent 89aa18b commit 0861966

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/t/test_fprintd_enroll.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ def test_basic(self, completion):
1313
def test_options(self, completion):
1414
assert completion
1515

16-
@pytest.mark.complete("fprintd-enroll --finger ", require_cmd=True)
16+
@pytest.mark.complete(
17+
"fprintd-enroll --finger ",
18+
require_cmd=True,
19+
skipif="busctl list 2>/dev/null; (( $? == 1 ))", # fprintd relies on dbus running
20+
)
1721
def test_finger(self, completion):
1822
assert completion

0 commit comments

Comments
 (0)