diff options
Diffstat (limited to 'main/bash-completion/02-skip-getconf-test.patch')
-rw-r--r-- | main/bash-completion/02-skip-getconf-test.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/bash-completion/02-skip-getconf-test.patch b/main/bash-completion/02-skip-getconf-test.patch new file mode 100644 index 0000000000..8185f793a6 --- /dev/null +++ b/main/bash-completion/02-skip-getconf-test.patch @@ -0,0 +1,25 @@ +From 70afc1ed3697c3171a004b7db2f19220117d2862 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi> +Date: Tue, 30 Apr 2019 18:04:13 +0300 +Subject: [PATCH] test_getconf: skip if -a doesn't output any POSIX_V* + +Refs https://github.com/scop/bash-completion/issues/312 +--- + test/t/test_getconf.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/test/t/test_getconf.py b/test/t/test_getconf.py +index 6f9192d251..96713dbe4c 100644 +--- a/test/t/test_getconf.py ++++ b/test/t/test_getconf.py +@@ -14,7 +14,9 @@ def test_2(self, completion): + def test_3(self, completion): + assert completion + +- @pytest.mark.complete("getconf -v ") ++ @pytest.mark.complete( ++ "getconf -v ", skipif="! getconf -a 2>&1 | command grep -q ^POSIX_V" ++ ) + def test_4(self, completion): + assert completion + |