diff --git a/debian/tests/symbols b/debian/tests/symbols index 7ea4e9796868d41b27084d29049c7c105d8ad143..cbe861093fef244913e6631fcebb30ef970031dc 100755 --- a/debian/tests/symbols +++ b/debian/tests/symbols @@ -25,12 +25,9 @@ if ! bwrap --ro-bind / / true; then skip_all "1..0 # SKIP - cannot run bwrap" fi -scratch="$(mktemp -d)" -echo_tap "# Working directory: $scratch" -cd "$scratch" -trap 'cd /; rm -fr $scratch' EXIT -host="${scratch}/host" -mkdir "${host}" +echo_tap "# Working directory: $test_tempdir" +cd "$test_tempdir" +host="${test_tempdir}/host" CAPSULE_SYMBOLS="$(pkg-config --variable=libexecdir capsule)/capsule-symbols" diff --git a/debian/tests/version b/debian/tests/version index 4c6f97de2e21dbb358273ea1989be36b987b3dcb..3fbed704829ec7c9ff3ec9a85a7e0b6dfc539e22 100755 --- a/debian/tests/version +++ b/debian/tests/version @@ -25,12 +25,9 @@ if ! bwrap --ro-bind / / true; then skip_all "1..0 # SKIP - cannot run bwrap" fi -scratch="$(mktemp -d)" -echo_tap "# Working directory: $scratch" -cd "$scratch" -trap 'cd /; rm -fr $scratch' EXIT -host="${scratch}/host" -mkdir "${host}" +echo_tap "# Working directory: $test_tempdir" +cd "$test_tempdir" +host="${test_tempdir}/host" CAPSULE_VERSION="$(pkg-config --variable=libexecdir capsule)/capsule-version"