From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BAAF5158064 for ; Sun, 12 May 2024 17:13:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9719E29B0; Sun, 12 May 2024 17:13:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B071CE29B0 for ; Sun, 12 May 2024 17:13:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A0230335C7E for ; Sun, 12 May 2024 17:13:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D88F1132F for ; Sun, 12 May 2024 17:13:11 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1715533986.dc414511a5b92b27cd3d890f62c6cd504b78e8db.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/argcomplete/, dev-python/argcomplete/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/argcomplete/argcomplete-3.3.0.ebuild dev-python/argcomplete/files/argcomplete-3.3.0-test-bashrc.patch X-VCS-Directories: dev-python/argcomplete/files/ dev-python/argcomplete/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: dc414511a5b92b27cd3d890f62c6cd504b78e8db X-VCS-Branch: master Date: Sun, 12 May 2024 17:13:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4da3db53-d453-4cef-bf2f-e18487ca5993 X-Archives-Hash: 7bd3c04b98fed92f81653c0504e6eb5a commit: dc414511a5b92b27cd3d890f62c6cd504b78e8db Author: Michał Górny gentoo org> AuthorDate: Sun May 12 16:35:03 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun May 12 17:13:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc414511 dev-python/argcomplete: Fix test flakiness Signed-off-by: Michał Górny gentoo.org> dev-python/argcomplete/argcomplete-3.3.0.ebuild | 2 ++ .../argcomplete/files/argcomplete-3.3.0-test-bashrc.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/dev-python/argcomplete/argcomplete-3.3.0.ebuild b/dev-python/argcomplete/argcomplete-3.3.0.ebuild index cdda946da90b..ab7a1bf05da6 100644 --- a/dev-python/argcomplete/argcomplete-3.3.0.ebuild +++ b/dev-python/argcomplete/argcomplete-3.3.0.ebuild @@ -36,6 +36,8 @@ PATCHES=( # for entry point tests because they read metadata of all installed # packages which can take real long on systems with lots of packages "${FILESDIR}/argcomplete-3.1.6-timeout.patch" + # https://github.com/kislyuk/argcomplete/pull/485 + "${FILESDIR}/${P}-test-bashrc.patch" ) python_test() { diff --git a/dev-python/argcomplete/files/argcomplete-3.3.0-test-bashrc.patch b/dev-python/argcomplete/files/argcomplete-3.3.0-test-bashrc.patch new file mode 100644 index 000000000000..0e9f2fa1cea6 --- /dev/null +++ b/dev-python/argcomplete/files/argcomplete-3.3.0-test-bashrc.patch @@ -0,0 +1,13 @@ +diff --git a/test/test.py b/test/test.py +index c8f9419..ca38be6 100755 +--- a/test/test.py ++++ b/test/test.py +@@ -73,7 +73,7 @@ def _repl_sh(command, args, non_printable_insert): + + + def bash_repl(command="bash"): +- bashrc = os.path.join(os.path.dirname(pexpect.__file__), "replwrap", "bashrc.sh") ++ bashrc = os.path.join(os.path.dirname(pexpect.__file__), "bashrc.sh") + sh = _repl_sh(command, ["--rcfile", bashrc], non_printable_insert="\\[\\]") + return sh +