From 4dd2e6d814f4fb98faa459ce42d9e302bbd639d7 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Mon, 28 Sep 2020 16:20:09 +0200 Subject: [PATCH] test: SHARE_DIR can be externally defined Change the use of SHARE_DIR across all scripts so that it will only be set if it does not yet exist. This makes it possible to change the location of it across all scripts at once. --- test/run-builder.sh | 2 +- test/run-koji-container.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run-builder.sh b/test/run-builder.sh index 3839f70..2b1fae0 100755 --- a/test/run-builder.sh +++ b/test/run-builder.sh @@ -1,7 +1,7 @@ #!/usr/bin/bash set -euo pipefail -SHARE_DIR=/tmp/osbuild-composer-koji-test +SHARE_DIR=${SHARE_DIR:-/tmp/osbuild-composer-koji-test} DATA_DIR=/var/tmp/osbuild-koji-data # this script must be run as root diff --git a/test/run-koji-container.sh b/test/run-koji-container.sh index bd94dbf..00838b9 100755 --- a/test/run-koji-container.sh +++ b/test/run-koji-container.sh @@ -1,7 +1,7 @@ #!/bin/bash set -eu -SHARE_DIR=/tmp/osbuild-composer-koji-test +SHARE_DIR=${SHARE_DIR:-/tmp/osbuild-composer-koji-test} DATA_DIR=/var/tmp/osbuild-koji-data KOJI_HUB_IMAGE=koji.hub