From 63e4a347b83e3fce62836637109eb110a951d35d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zachar?= Date: Mon, 28 Jul 2025 17:09:27 +0200 Subject: [PATCH] CI: Respect TEST_ARTIFACTS but detect tmt STI used to allow /tmp/artifacts, in tmt we have TMT_PLAN_DATA and TMT_TEST_DATA. Use the later, which is test specific. (cherry picked from Fedora commit 8998e8e0277f857f33a985ce938cb3616bb2779e) --- tests/mocktest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mocktest.sh b/tests/mocktest.sh index 9cfad81..15fc9f3 100755 --- a/tests/mocktest.sh +++ b/tests/mocktest.sh @@ -72,7 +72,7 @@ mock --verbose --isolation=simple -r $config --enablerepo="$repos" init mock --verbose --isolation=simple -r $config --enablerepo="$repos" "$@" ~/rpmbuild/SRPMS/${pkgname}-*.src.rpm || res=$? # move the results to the artifacts directory, so we can examine them -artifacts=${TEST_ARTIFACTS:-/tmp/artifacts} +artifacts=${TEST_ARTIFACTS:-${TMT_TEST_DATA:-/tmp/artifacts}} # on Fedora Rawhide, the directory contains "rawhide" instead of the actual version pushd /var/lib/mock/${mock}/result || pushd /var/lib/mock/${mock/${version}/rawhide}/result