-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
problem: sharness improvements merged upstream but not here solution: update to the new versions and add the heredoc support
- Loading branch information
Showing
2 changed files
with
70 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
test_expect_success_hd() { | ||
test "$#" = 2 && { test_prereq=$1; shift; } || test_prereq= | ||
local TEST_CODE | ||
# these extra newlines are intentional, and mimic the ones we get | ||
# naturally in the non-heredoc case | ||
TEST_CODE="\ | ||
$(cat) | ||
" | ||
test_expect_success "$test_prereq" "'$1'" "$TEST_CODE" | ||
} | ||
|
||
test_expect_failure_hd() { | ||
test "$#" = 2 && { test_prereq=$1; shift; } || test_prereq= | ||
local TEST_CODE | ||
# these extra newlines are intentional, and mimic the ones we get | ||
# naturally in the non-heredoc case | ||
TEST_CODE="\ | ||
$(cat) | ||
" | ||
test_expect_failure "$test_prereq" "'$1'" "$TEST_CODE" | ||
} | ||
|