Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Properly sandbox pkg search test
Baptiste Daroussin committed 11 years ago
commit 6c1f1aba726c39eab8b36ef13f9c85d59e1a5be8
parent 005ae5a
1 file changed +4 -2
modified tests/frontend/search.shin
@@ -6,8 +6,10 @@ search_head() {
}

search_body() {
-
	REPOS_DIR=/nonexistent
-
	atf_check -e inline:"pkg: No active remote repositories configured\n" -o empty -s exit:74 pkg -C '' -R '' search -U -e -Q comment -S name pkg
+
	export REPOS_DIR=/nonexistent
+
	export PKG_DBDIR=.
+
	export INSTALL_AS_USER=yes
+
	atf_check -e inline:"pkg: No active remote repositories configured\n" -o empty -s exit:74 pkg -C '' -R '' search -e -Q comment -S name pkg
}

atf_init_test_cases() {