Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix the tests/frontend/rootdir:rootdir test on linux
Brad Davis committed 9 years ago
commit 68e85912f487c46a9bef2e4835e466c8383cb580
parent f2b1ef8
2 files changed +7 -1
modified tests/frontend/extract.sh
@@ -245,6 +245,7 @@ chflags_schg_body()

chflags_schg_cleanup()
{
+
	test -x /bin/chflags || atf_skip "Requires chflags"
	chflags -R noschg ${TMPDIR}
}

modified tests/frontend/rootdir.sh
@@ -7,9 +7,14 @@ tests_init \

rootdir_body() {
	unset PKG_DBDIR
+
	if [ `uname -s` = "Linux" ]; then
+
		RP='readlink'
+
	else
+
		RP='realpath'
+
	fi

	atf_check \
-
		-o inline:"`realpath ${TMPDIR}`/var/db/pkg\n" \
+
		-o inline:"`${RP} ${TMPDIR}`/var/db/pkg\n" \
		-e empty \
		-s exit:0 \
		pkg -r "${TMPDIR}" config pkg_dbdir