Skip to content

Commit

Permalink
tests/compose: Add RPMOSTREE_TMPDIR_LOCATION
Browse files Browse the repository at this point in the history
This allows one to run the tests from a container using overlay +
SELinux protection by running the actual compose into a non-overlay
bind-mount. Otherwise, we'll hit `ENOTSUP` when trying to set labels on
various checkouts.

Closes: #1829
Approved by: cgwalters
  • Loading branch information
jlebon authored and rh-atomic-bot committed May 9, 2019
1 parent c035c2b commit 4d84595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/compose-tests/libcomposetest.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dn=$(cd $(dirname $0) && pwd)
test_tmpdir=$(mktemp -d /var/tmp/rpm-ostree-compose-test.XXXXXX)
test_tmpdir=$(mktemp -d ${RPMOSTREE_TMPDIR_LOCATION:-/var/tmp}/rpm-ostree-compose-test.XXXXXX)
touch ${test_tmpdir}/.test
trap _cleanup_tmpdir EXIT
cd ${test_tmpdir}
Expand Down

0 comments on commit 4d84595

Please sign in to comment.