From 9b33288b4aa88a1d41786eacfe31eb966b6c0455 Mon Sep 17 00:00:00 2001 From: vladislav doster <10052309+vladdoster@users.noreply.github.com> Date: Fri, 29 Sep 2023 02:12:46 -0500 Subject: [PATCH] fix: set home dir to test env in gh-r tests (#582) Signed-off-by: Vladislav Doster --- tests/gh-r.zunit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/gh-r.zunit b/tests/gh-r.zunit index 9f684d75b..0ace55692 100755 --- a/tests/gh-r.zunit +++ b/tests/gh-r.zunit @@ -2,6 +2,7 @@ @setup { + HOME="$ZPFX" # Stops programs creating directories in user home export ZBIN="${ZPFX}/bin" export os_type="${OSTYPE//[0-9\.]*/}" zinit default-ice --quiet from'gh-r' nocompile lbin'' @@ -77,7 +78,7 @@ [[ $OSTYPE =~ 'darwin*' ]] && skip "on $os_type" run zinit for @imsnif/bandwhich; assert $state equals 0 local bandwhich="$ZBIN/bandwhich"; assert "$bandwhich" is_executable - run $bandwhich --version; assert $state equals 0 + run $bandwhich --help; assert $state equals 0 } @test 'bat' { # A cat(1) clone with wings run zinit for @sharkdp/bat; assert $state equals 0