Skip to content
Snippets Groups Projects
Commit f4c6c6ee authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Consistently use temporary directory from libtest.sh

parent 40886bd6
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -25,12 +25,9 @@ if ! bwrap --ro-bind / / true; then ...@@ -25,12 +25,9 @@ if ! bwrap --ro-bind / / true; then
skip_all "1..0 # SKIP - cannot run bwrap" skip_all "1..0 # SKIP - cannot run bwrap"
fi fi
scratch="$(mktemp -d)" echo_tap "# Working directory: $test_tempdir"
echo_tap "# Working directory: $scratch" cd "$test_tempdir"
cd "$scratch" host="${test_tempdir}/host"
trap 'cd /; rm -fr $scratch' EXIT
host="${scratch}/host"
mkdir "${host}"
CAPSULE_SYMBOLS="$(pkg-config --variable=libexecdir capsule)/capsule-symbols" CAPSULE_SYMBOLS="$(pkg-config --variable=libexecdir capsule)/capsule-symbols"
......
...@@ -25,12 +25,9 @@ if ! bwrap --ro-bind / / true; then ...@@ -25,12 +25,9 @@ if ! bwrap --ro-bind / / true; then
skip_all "1..0 # SKIP - cannot run bwrap" skip_all "1..0 # SKIP - cannot run bwrap"
fi fi
scratch="$(mktemp -d)" echo_tap "# Working directory: $test_tempdir"
echo_tap "# Working directory: $scratch" cd "$test_tempdir"
cd "$scratch" host="${test_tempdir}/host"
trap 'cd /; rm -fr $scratch' EXIT
host="${scratch}/host"
mkdir "${host}"
CAPSULE_VERSION="$(pkg-config --variable=libexecdir capsule)/capsule-version" CAPSULE_VERSION="$(pkg-config --variable=libexecdir capsule)/capsule-version"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment