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