Skip to content

Commit

Permalink
fix: set home dir to test env in gh-r tests (#582)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <[email protected]>
  • Loading branch information
vladdoster authored Sep 29, 2023
1 parent 2e7b9aa commit 9b33288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/gh-r.zunit
Original file line number Diff line number Diff line change
Expand Up @@ -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''
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9b33288

Please sign in to comment.