Skip to content

Commit

Permalink
bootc: Make temp directory in test setup
Browse files Browse the repository at this point in the history
Ensures the /var/tmp/tmt directory exists before creating
the temp directories. This directory might not exist in
the CI environment. It usually exists when running locally.

Signed-off-by: Chris Kyrouac <[email protected]>
  • Loading branch information
ckyrouac committed Nov 5, 2024
1 parent 899526f commit 6651299
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/provision/bootc/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ rlJournalStart

# use /var/tmp/tmt so the temp directories are accessible
# in the podman machine mount
rlRun "mkdir -p /var/tmp/tmt"
rlRun "tmp=\$(mktemp -d --tmpdir=/var/tmp/tmt)" 0 "Create tmp directory"
rlRun "run=\$(mktemp -d --tmpdir=/var/tmp/tmt)" 0 "Create run directory"
rlRun "pushd $tmp"
Expand Down

0 comments on commit 6651299

Please sign in to comment.