Skip to content

Commit d870bdb

Browse files
committed
prep for bats bump
1 parent 86cbadf commit d870bdb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/behavior.bats

+4-5
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ CASES
8181
resholve --interpreter $INTERP < absolute_source.sh
8282
CASES
8383

84-
echo "source $PWD/tests/source_present_target.sh" > $PWD/tests/temp_source_test.sh
8584
@test "allows exempted absolute source paths" {
8685
require <({
8786
status 0
88-
line -1 ends "/tests/source_present_target.sh"
87+
line -1 ends "/source_present_target.sh"
8988
})
9089
} <<CASES
91-
resholve --interpreter $INTERP --keep source:$PWD/tests/source_present_target.sh < $PWD/tests/temp_source_test.sh && rm $PWD/tests/temp_source_test.sh
90+
{ echo "source $PWD/source_present_target.sh" > $PWD/temp_source_test.sh; } && resholve --interpreter $INTERP --keep source:$PWD/source_present_target.sh < $PWD/temp_source_test.sh && rm $PWD/temp_source_test.sh
9291
CASES
9392

9493
@test "allow (but do not parse) --fake 'source:path'" {
@@ -116,7 +115,7 @@ CASES
116115
line -1 equals "[ stdinNone ]:2: Can't resolve dynamic command"
117116
})
118117
} <<CASES
119-
resholve --interpreter $INTERP < $PWD/tests/tilde_dynamic_pipeline.sh
118+
resholve --interpreter $INTERP < tilde_dynamic_pipeline.sh
120119
CASES
121120

122121
@test "allows exempted tilde executable paths" {
@@ -125,7 +124,7 @@ CASES
125124
line -1 equals "# resholve: keep ~/.bashrc"
126125
})
127126
} <<CASES
128-
resholve --interpreter $INTERP --keep '~/.bashrc' < $PWD/tests/tilde_dynamic_pipeline.sh
127+
resholve --interpreter $INTERP --keep '~/.bashrc' < tilde_dynamic_pipeline.sh
129128
CASES
130129

131130
@test "allows --fake executable" {

0 commit comments

Comments
 (0)