Commit 5ff42d42 authored by Junio C Hamano's avatar Junio C Hamano

Merge branch 'jc/test-must-be-empty'

Test helper update.

* jc/test-must-be-empty:
  test_must_be_empty: simplify file existence check
parents 18196307 9eb23080
......@@ -782,11 +782,8 @@ verbose () {
# otherwise.
test_must_be_empty () {
if ! test -f "$1"
then
echo "'$1' is missing"
return 1
elif test -s "$1"
test_path_is_file "$1" &&
if test -s "$1"
then
echo "'$1' is not empty, it contains:"
cat "$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment