1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 04:23:47 -05:00

Import changes from ruby-build v20150112

This commit is contained in:
Yamashita Yuu
2015-01-15 23:13:36 +09:00
parent ba9c01ce77
commit 123b3af1a0
8 changed files with 135 additions and 32 deletions

View File

@@ -115,6 +115,10 @@ assert_output() {
assert_output_contains() {
local expected="$1"
if [ -z "$expected" ]; then
echo "assert_output_contains needs an argument" >&2
return 1
fi
echo "$output" | $(type -p ggrep grep | head -1) -F "$expected" >/dev/null || {
{ echo "expected output to contain $expected"
echo "actual: $output"