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 CF84D138334 for ; Mon, 10 Jun 2019 10:09:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DBDCE086E; Mon, 10 Jun 2019 10:09:10 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 2E0CEE0867 for ; Mon, 10 Jun 2019 10:09:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 9C8F4345B70 for ; Mon, 10 Jun 2019 10:09:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 305B5616 for ; Mon, 10 Jun 2019 10:09:06 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1560160705.f45d8de0bc9d477dce9b3ae7a0d958e089307473.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: tests/ X-VCS-Repository: proj/portage-utils X-VCS-Files: tests/init.sh.in X-VCS-Directories: tests/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: f45d8de0bc9d477dce9b3ae7a0d958e089307473 X-VCS-Branch: master Date: Mon, 10 Jun 2019 10:09:06 +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: d83a4fa4-9834-4889-99b0-fe233d8ec0fe X-Archives-Hash: 09a91a2b971dbfd86cfd624b50d993cc commit: f45d8de0bc9d477dce9b3ae7a0d958e089307473 Author: Fabian Groffen gentoo org> AuthorDate: Mon Jun 10 09:58:25 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Mon Jun 10 09:58:25 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=f45d8de0 tests: allow tmpdir to reside in a place defined by Q_TMPDIR when using NFS or something like that, using local storage iso builddir is nice, because of speed but more because also not all operations are allowed on network shares, so using this in some scenarios allows to pass the tests Signed-off-by: Fabian Groffen gentoo.org> tests/init.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/init.sh.in b/tests/init.sh.in index c031ae3..875e2af 100644 --- a/tests/init.sh.in +++ b/tests/init.sh.in @@ -68,7 +68,7 @@ end() { } mktmpdir() { - local d=${1:-${ab}/tmp} + local d=${1:-${Q_TMPDIR:-${ab}}/q-tmp} rm -rf "$d" && \ mkdir -p "$d" && \ pushd "$d" >/dev/null \ @@ -76,7 +76,7 @@ mktmpdir() { } _cleantmpdir() { local cmd=$1; shift - local d=${1:-${ab}/tmp} + local d=${1:-${Q_TMPDIR:-${ab}}/q-tmp} popd >/dev/null ${cmd} "${d}" || fail "could not clean tmp dir '$d'" }