mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
test: don't overwrite TESTDIR if already set
This commit is contained in:
parent
96c45cc697
commit
3f50fff536
@ -817,8 +817,13 @@ inst_libs() {
|
||||
|
||||
import_testdir() {
|
||||
[[ -e $STATEFILE ]] && . $STATEFILE
|
||||
if [[ -z "$TESTDIR" ]] || [[ ! -d "$TESTDIR" ]]; then
|
||||
if [[ ! -d "$TESTDIR" ]]; then
|
||||
if [[ -z "$TESTDIR" ]]; then
|
||||
TESTDIR=$(mktemp --tmpdir=/var/tmp -d -t systemd-test.XXXXXX)
|
||||
else
|
||||
mkdir -p "$TESTDIR"
|
||||
fi
|
||||
|
||||
echo "TESTDIR=\"$TESTDIR\"" > $STATEFILE
|
||||
export TESTDIR
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user