aboutsummaryrefslogtreecommitdiffstats
path: root/main/bash-completion/03-skip-iconv-test.patch
diff options
context:
space:
mode:
authorLucas Ramage <ramage.lucas@protonmail.com>2019-04-29 03:15:58 +0000
committerLeo <thinkabit.ukim@gmail.com>2019-11-19 22:04:12 +0100
commitc06a24eae55ab0a444b5046ef8ef733dbb565793 (patch)
tree53892b5d82619ade5c6e4a9f7d630c041362a480 /main/bash-completion/03-skip-iconv-test.patch
parent567df27d4e844160c3350b5ddc43291ad5735b36 (diff)
downloadaports-c06a24eae55ab0a444b5046ef8ef733dbb565793.tar.bz2
aports-c06a24eae55ab0a444b5046ef8ef733dbb565793.tar.xz
main/bash-completion: upgrade to 2.9
Latest version now requires pexpect to successfully run checks Tests for ifup/down are still failing on master so they were removed See: https://github.com/scop/bash-completion/issues/235
Diffstat (limited to 'main/bash-completion/03-skip-iconv-test.patch')
-rw-r--r--main/bash-completion/03-skip-iconv-test.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/bash-completion/03-skip-iconv-test.patch b/main/bash-completion/03-skip-iconv-test.patch
new file mode 100644
index 0000000000..092c4019fd
--- /dev/null
+++ b/main/bash-completion/03-skip-iconv-test.patch
@@ -0,0 +1,25 @@
+From 2cdac1b9f24df62a1fa80c1824ee8524c9b02393 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
+Date: Wed, 1 May 2019 13:42:52 +0300
+Subject: [PATCH] test_iconv: skip option completion if --help fails
+
+Such as on Alpine Linux (musl libc).
+
+Refs https://github.com/scop/bash-completion/issues/312
+---
+ test/t/test_iconv.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/t/test_iconv.py b/test/t/test_iconv.py
+index dc5f8961a6..2edc439b08 100644
+--- a/test/t/test_iconv.py
++++ b/test/t/test_iconv.py
+@@ -2,7 +2,7 @@
+
+
+ class TestIconv:
+- @pytest.mark.complete("iconv -")
++ @pytest.mark.complete("iconv -", skipif="! iconv --help &>/dev/null")
+ def test_1(self, completion):
+ assert completion
+