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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AD1BF138359 for ; Fri, 18 Sep 2020 16:56:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB807E0815; Fri, 18 Sep 2020 16:56:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BD45BE0815 for ; Fri, 18 Sep 2020 16:56:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A784233BF35 for ; Fri, 18 Sep 2020 16:56:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 21EFD361 for ; Fri, 18 Sep 2020 16:56:00 +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: <1600448156.ce3ab4da0104f11777d55456c935783f27d8b1cb.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/scons/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/scons/scons-4.0.1.ebuild X-VCS-Directories: dev-util/scons/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ce3ab4da0104f11777d55456c935783f27d8b1cb X-VCS-Branch: master Date: Fri, 18 Sep 2020 16:56:00 +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: 610c3792-a177-43b8-b9cd-1a4b949352a4 X-Archives-Hash: ebc31c6a2d541b5d5b2bf15e08d3ed2d commit: ce3ab4da0104f11777d55456c935783f27d8b1cb Author: Michał Górny gentoo org> AuthorDate: Fri Sep 18 16:44:11 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Sep 18 16:55:56 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce3ab4da dev-util/scons: Apply test cleanup only with USE=test Closes: https://bugs.gentoo.org/743373 Signed-off-by: Michał Górny gentoo.org> dev-util/scons/scons-4.0.1.ebuild | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/dev-util/scons/scons-4.0.1.ebuild b/dev-util/scons/scons-4.0.1.ebuild index 11498c389cf..2b0730c7f7c 100644 --- a/dev-util/scons/scons-4.0.1.ebuild +++ b/dev-util/scons/scons-4.0.1.ebuild @@ -63,15 +63,17 @@ src_prepare() { sed -i -e '/cmdclass/,/},$/d' \ -e '/data_files/s:man/:share/man/:' "${S}"/setup.py || die - local remove_tests=( - # TODO: does not respect PATH? - test/Clang - # broken - test/DVIPDF/DVIPDFFLAGS.py - test/Java/swig-dependencies.py - test/Java/multi-step.py - ) - rm -r "${remove_tests[@]}" || die + if use test; then + local remove_tests=( + # TODO: does not respect PATH? + test/Clang + # broken + test/DVIPDF/DVIPDFFLAGS.py + test/Java/swig-dependencies.py + test/Java/multi-step.py + ) + rm -r "${remove_tests[@]}" || die + fi } python_test() {