Skip to content

Commit 4053050

Browse files
committed
tests: unset XBPS_{,TARGET_}ARCH when testing architecure config option
since the environment variables now take precendence over the config option and xbps-src exports them when running the test suite this needs to be unset. Might probably make sense to unset all xbps related ones somehow in the test suite globally.
1 parent 75cfcf3 commit 4053050

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/xbps/xbps-uhelper/arch_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ conf_head() {
2828
}
2929
conf_body() {
3030
mkdir -p xbps.d
31+
unset XBPS_ARCH XBPS_TARGET_ARCH
3132
echo "architecture=x86_64-musl" > xbps.d/arch.conf
3233
atf_check_equal $(xbps-uhelper -C $PWD/xbps.d arch) x86_64-musl
3334
}

0 commit comments

Comments
 (0)