test: DATA_DIR can be externally defined

Change the use of DATA_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:23:47 +02:00 committed by Tom Gundersen
parent 4dd2e6d814
commit 30aa71563c
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
set -euo pipefail
SHARE_DIR=${SHARE_DIR:-/tmp/osbuild-composer-koji-test}
DATA_DIR=/var/tmp/osbuild-koji-data
DATA_DIR=${DATA_DIR:-/var/tmp/osbuild-koji-data}
# this script must be run as root
if [ $UID != 0 ]; then