summaryrefslogtreecommitdiff
path: root/test/t/test_nproc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_nproc.py')
-rw-r--r--test/t/test_nproc.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/t/test_nproc.py b/test/t/test_nproc.py
index 6ab8017c..66a49acb 100644
--- a/test/t/test_nproc.py
+++ b/test/t/test_nproc.py
@@ -6,6 +6,12 @@ class TestNproc:
def test_1(self, completion):
assert not completion
- @pytest.mark.complete("nproc -")
+ @pytest.mark.complete(
+ "nproc --",
+ xfail=(
+ "! nproc --help &>/dev/null || "
+ "! nproc --help 2>&1 | command grep -qF -- --help"
+ ),
+ )
def test_2(self, completion):
assert completion