Use /var/tmp instead of /tmp for unpacking SRPM in licence-check test

This commit is contained in:
Jan Kurik 2023-07-25 18:19:38 +02:00
parent 1f2e596891
commit e5f6b0d154

View File

@ -7,7 +7,7 @@ TCWD="$(pwd)"
rlJournalStart
rlPhaseStartSetup
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "tmp=\$(mktemp -d /var/tmp/XXXXXXXXXXXXX)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlRun "set -o pipefail"
@ -60,7 +60,7 @@ done < <(sort -u <<< "${LICENSES}")
rlPhaseStartCleanup
rlRun "popd"
# rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlRun "yum clean metadata"
[[ -n "${EPELREPO}" ]] && rlRun "rm -f ${EPELREPO}"
rlPhaseEnd