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.
This commit is contained in:
Christian Kellner 2020-09-28 16:20:09 +02:00 committed by Tom Gundersen
parent aa8513c20d
commit 4dd2e6d814
2 changed files with 2 additions and 2 deletions

View file

@ -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