提交 2ba1beeb 编写于 作者: J Jon Seymour 提交者: Linus Torvalds

[PATCH] Demonstrate broken t6001 test case function

Junio discovered a problem where an actual test case break was hidden
because pipelines are not handled properly by the test infrastructure in
t6001.

This patch fixes the broken infrastructure (and demonstrates the break
explicitly).

A subsequent patch in this series will fix the test case so that it
doesn't fail.
Signed-off-by: NJon Seymour <jon.seymour@gmail.com>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 99c2bc93
......@@ -85,13 +85,12 @@ check_output()
{
_name=$1
shift 1
if "$@" | entag > $_name.actual
if eval "$*" | entag > $_name.actual
then
diff $_name.expected $_name.actual
else
return 1;
fi
}
# Turn a reasonable test description into a reasonable test name.
......@@ -114,7 +113,7 @@ test_output_expect_success()
[ $# -eq 2 ] || error "usage: test_output_expect_success description test <<EOF ... EOF"
_name=$(echo $_description | name_from_description)
cat > $_name.expected
test_expect_success "$_description" "check_output $_name $_test"
test_expect_success "$_description" "check_output $_name \"$_test\""
}
# --- end of stuff to move ---
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册