summaryrefslogtreecommitdiffstats
path: root/test/t/test_firefox.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_firefox.py')
-rw-r--r--test/t/test_firefox.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/t/test_firefox.py b/test/t/test_firefox.py
index 2e05255..619318c 100644
--- a/test/t/test_firefox.py
+++ b/test/t/test_firefox.py
@@ -6,7 +6,12 @@ class TestFirefox:
def test_1(self, completion):
assert completion
- @pytest.mark.complete("firefox -", require_cmd=True)
+ # --help test: running as root in GH actions container croaks:
+ # Running Firefox as root in a regular user's session is not supported.
+ # ($HOME is /github/home which is owned by uid 1001.)
+ @pytest.mark.complete(
+ "firefox -", require_cmd=True, xfail="! firefox --help &>/dev/null"
+ )
def test_2(self, completion):
assert completion
assert not completion.endswith(" ")