Fix patch passed via stdin in tests

[picture of I Have No Idea What I'm Doing dog]

https://travis-ci.org/sstephenson/ruby-build/builds/23435342
This commit is contained in:
Mislav Marohnić 2014-04-21 17:12:06 +02:00
parent c76cde673e
commit 1786cf75d2

View file

@ -87,7 +87,7 @@ OUT
stub_make_install
stub patch ' : echo patch "$@" | sed -E "s/\.[[:alnum:]]+$/.XXX/" >> build.log'
echo | TMPDIR="$TMP" install_fixture --patch definitions/needs-yaml
TMPDIR="$TMP" install_fixture --patch definitions/needs-yaml <<<""
assert_success
unstub make
@ -113,7 +113,7 @@ OUT
stub_make_install
stub patch ' : echo patch "$@" | sed -E "s/\.[[:alnum:]]+$/.XXX/" >> build.log'
echo 'diff --git a/script.rb' | TMPDIR="$TMP" install_fixture --patch definitions/needs-yaml
TMPDIR="$TMP" install_fixture --patch definitions/needs-yaml <<<"diff --git a/script.rb"
assert_success
unstub make