Improve test framework

assertGrep() dumps file contents to log on failure
This commit is contained in:
Andrew Bettison 2012-05-20 13:14:15 +09:30
parent 345b2c1c4c
commit 7fbe25946b

View File

@ -295,6 +295,7 @@ assertGrep() {
_tfw_error "incorrect arguments"
return 254
fi
_tfw_dump_on_fail "$1"
_tfw_assert_grep "$1" "$1" "$2" || _tfw_failexit
}