Skip to content

Commit 0fc34e0

Browse files
committed
test: Remove changes to BPM_ROOT in tests initialization
1 parent ac42da4 commit 0fc34e0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

pkg/lib/commands/do-add.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ do-add() {
8484
if [[ ! -d "$subDep" && -n "${BPM_MODE_TEST+x}" ]]; then
8585
# During some tests, plumbing-* or Git commands may be stubbed,
8686
# so the package may not actually be cloned
87-
return
87+
continue
8888
fi
8989

9090
local oldWd="$PWD"

tests/do-init.bats

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,17 @@ load './util/init.sh'
3535

3636
eval "$(do-init bash)"
3737

38-
command -v _bpm
38+
assert command -v _bpm
3939
}
4040

4141
@test "is fish compatible" {
4242
if ! command -v fish &>/dev/null; then
4343
skip "Command 'fish' not in PATH"
4444
fi
4545

46-
HOME= XDG_DATA_HOME= XDG_CONFIG_HOME= run fish -Pc '. (bpm init fish | psub)'
46+
HOME= XDG_DATA_HOME= XDG_STATE_HOME= XDG_CONFIG_HOME= run fish -Pc '. (bpm init fish | psub)'
47+
48+
assert_success
4749
}
4850

4951
@test "is sh-compatible" {

tests/util/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export LANG="C"
1616
export LANGUAGE="C"
1717
export LC_ALL="C"
1818
export XDG_DATA_HOME=
19-
export PATH="$BPM_ROOT/pkg/bin:$PATH"
19+
export PATH="$BPM_ROOT/pkg/bin:$PATH" # TODO
2020

2121
export PROGRAM_LIB_DIR="$BATS_TEST_DIRNAME/../pkg/lib"
2222
export BPM_ROOT="$BATS_TEST_DIRNAME/.."

0 commit comments

Comments
 (0)