Skip to content

Commit 10387d5

Browse files
committed
test: Fix failing test due to macOS /var -> /private/var symlink
1 parent d674633 commit 10387d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/do-link.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ load 'util/init.sh'
9292

9393
test_util.create_pkg_dir "$dir"
9494

95-
run do-link "$BPM_ORIGIN_DIR/$dir"
95+
run do-link "$(util.readlink "$BPM_ORIGIN_DIR/$dir")"
9696

9797
assert_success
9898
assert_line -n 0 -p "Linking '$BPM_ORIGIN_DIR/$dir'"
@@ -115,7 +115,7 @@ load 'util/init.sh'
115115
test_util.create_pkg_dir "$dir1"
116116
test_util.create_pkg_dir "$dir2"
117117

118-
run do-link "$BPM_ORIGIN_DIR/$dir1" "$BPM_ORIGIN_DIR/$dir2"
118+
run do-link "$(util.readlink "$BPM_ORIGIN_DIR/$dir1")" "$(test_util.readlink "$BPM_ORIGIN_DIR/$dir2")"
119119

120120
assert_success
121121
assert_line -n 0 -p "Linking '$BPM_ORIGIN_DIR/$dir1'"

0 commit comments

Comments
 (0)