diff options
author | Lucas Ramage <ramage.lucas@protonmail.com> | 2019-04-29 03:15:58 +0000 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-11-19 22:04:12 +0100 |
commit | c06a24eae55ab0a444b5046ef8ef733dbb565793 (patch) | |
tree | 53892b5d82619ade5c6e4a9f7d630c041362a480 /main/bash-completion/05-fix-arp-test.patch | |
parent | 567df27d4e844160c3350b5ddc43291ad5735b36 (diff) | |
download | aports-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/05-fix-arp-test.patch')
-rw-r--r-- | main/bash-completion/05-fix-arp-test.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/bash-completion/05-fix-arp-test.patch b/main/bash-completion/05-fix-arp-test.patch new file mode 100644 index 0000000000..3b01bbcc7d --- /dev/null +++ b/main/bash-completion/05-fix-arp-test.patch @@ -0,0 +1,28 @@ +From 90ede989622143dc93c9a05a18bc23767c4bff9c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Tue, 30 Apr 2019 09:59:19 +0200 +Subject: [PATCH] test_arp: Skip if ARP tables are empty + +Skip test_arp if 'arp' yields no output. This e.g. happens when +the host is not networking-enabled. +--- + test/t/test_arp.py | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/test/t/test_arp.py b/test/t/test_arp.py +index 35963d754e..0dc117284e 100644 +--- a/test/t/test_arp.py ++++ b/test/t/test_arp.py +@@ -1,11 +1,8 @@ + import pytest + +-from conftest import in_docker +- + + class TestArp: +- @pytest.mark.xfail(in_docker(), reason="Probably fails in docker") +- @pytest.mark.complete("arp ") ++ @pytest.mark.complete("arp ", skipif='test -z "$(arp 2>/dev/null)"') + def test_1(self, completion): + assert completion + |