File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ do-add() {
84
84
if [[ ! -d " $subDep " && -n " ${BPM_MODE_TEST+x} " ]]; then
85
85
# During some tests, plumbing-* or Git commands may be stubbed,
86
86
# so the package may not actually be cloned
87
- continue
87
+ return
88
88
fi
89
89
90
90
local oldWd=" $PWD "
Original file line number Diff line number Diff line change @@ -35,17 +35,15 @@ load './util/init.sh'
35
35
36
36
eval " $( do-init bash) "
37
37
38
- assert command -v _bpm
38
+ command -v _bpm
39
39
}
40
40
41
41
@test " is fish compatible" {
42
42
if ! command -v fish & > /dev/null; then
43
43
skip " Command 'fish' not in PATH"
44
44
fi
45
45
46
- HOME= XDG_DATA_HOME= XDG_STATE_HOME= XDG_CONFIG_HOME= run fish -Pc ' . (bpm init fish | psub)'
47
-
48
- assert_success
46
+ HOME= XDG_DATA_HOME= XDG_CONFIG_HOME= run fish -Pc ' . (bpm init fish | psub)'
49
47
}
50
48
51
49
@test " is sh-compatible" {
Original file line number Diff line number Diff line change @@ -16,17 +16,17 @@ export LANG="C"
16
16
export LANGUAGE=" C"
17
17
export LC_ALL=" C"
18
18
export XDG_DATA_HOME=
19
- export PATH=" $BPM_ROOT /pkg/bin:$PATH " # TODO
19
+ export PATH=" $BPM_ROOT /pkg/bin:$PATH "
20
20
21
21
export PROGRAM_LIB_DIR=" $BATS_TEST_DIRNAME /../pkg/lib"
22
- export BPM_ROOT=" $BATS_TEST_DIRNAME /../.. "
22
+ export BPM_ROOT=" $BATS_TEST_DIRNAME /.."
23
23
export BPM_PREFIX=" $BPM_TEST_DIR /cellar"
24
24
export BPM_PACKAGES_PATH=" $BPM_PREFIX /packages"
25
25
export BPM_INSTALL_BIN=" $BPM_PREFIX /bin"
26
26
export BPM_INSTALL_MAN=" $BPM_PREFIX /man"
27
27
export BPM_INSTALL_COMPLETIONS=" $BPM_PREFIX /completions"
28
28
29
- for f in " $BPM_ROOT " /source/ pkg/lib/{commands,util}/?* .sh; do
29
+ for f in " $BPM_ROOT " /pkg/lib/{commands,util}/?* .sh; do
30
30
source " $f "
31
31
done
32
32
You can’t perform that action at this time.
0 commit comments