Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Properly sandbox pkg search test
Baptiste Daroussin committed 11 years ago
commit 6c1f1aba726c39eab8b36ef13f9c85d59e1a5be8
parent 005ae5a4f8b9d6bf380eb1397d8ba8a26bfcb8ae
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() {