From 88b46f01876e5d7f0878e00c772ba71365f75b1b Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Tue, 8 Oct 2019 10:20:51 +0200 Subject: testing/shunit2: Remove (incorrect) shell globing The test framework of shunit2 needs to have the TMPDIR variable set correctly. As we want to ensure we scope the temporary directory properly, lets create our own temporary path using mktemp and pass this to shunit2. We can now cleanly remove whatever is in this path. Signed-off-by: Olliver Schinagl Closes !300 --- testing/shunit2/APKBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testing/shunit2/APKBUILD') diff --git a/testing/shunit2/APKBUILD b/testing/shunit2/APKBUILD index 7ca3e8d304..f0fd60851c 100644 --- a/testing/shunit2/APKBUILD +++ b/testing/shunit2/APKBUILD @@ -12,9 +12,9 @@ subpackages="${pkgname}-doc" source="${pkgname}-${pkgver}.tar.gz::https://github.com/kward/shunit2/archive/v${pkgver}.tar.gz" check() { - _tmpdir="${TMPDIR:-/tmp/}" - TMPDIR="$(mktemp -d -p "${_tmpdir}" shunit2.XXXXXXXX)" ./gen_test_report.sh - rm -rf "${_tmpdir}/shunit2.*" + _tmpdir="$(mktemp -d -p "${TMPDIR:-/tmp/}" shunit2.XXXXXXXX)" + TMPDIR="${_tmpdir}" ./gen_test_report.sh + rm -rf "${_tmpdir}" } package() { -- cgit v1.2.3