From 2e08cbef7ae2e5e5abcb050ea727ee20fb86abe2 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Sat, 28 Dec 2019 13:42:30 +0100
Subject: [PATCH] tests: fixed tests to not use host's xbps.d confdir.

---
 tests/xbps/xbps-uhelper/arch_test.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/xbps/xbps-uhelper/arch_test.sh b/tests/xbps/xbps-uhelper/arch_test.sh
index d378a310..80d9a4de 100644
--- a/tests/xbps/xbps-uhelper/arch_test.sh
+++ b/tests/xbps/xbps-uhelper/arch_test.sh
@@ -13,7 +13,7 @@ native_body() {
 	else
 		arch=$(uname -m)
 	fi
-	atf_check_equal $(xbps-uhelper arch) $arch
+	atf_check_equal $(xbps-uhelper -r $PWD arch) $arch
 }
 
 atf_test_case env
@@ -23,7 +23,7 @@ env_head() {
 }
 env_body() {
 	export XBPS_ARCH=foo
-	atf_check_equal $(xbps-uhelper arch) foo
+	atf_check_equal $(xbps-uhelper -r $PWD arch) foo
 }
 
 atf_test_case conf
@@ -34,7 +34,7 @@ conf_head() {
 conf_body() {
 	mkdir -p xbps.d
 	echo "architecture=NULL" > xbps.d/arch.conf
-	atf_check_equal $(xbps-uhelper -C $PWD/xbps.d arch) NULL
+	atf_check_equal $(xbps-uhelper -r $PWD -C $PWD/xbps.d arch) NULL
 }
 
 atf_init_test_cases() {