提交 ac9e40e8 编写于 作者: J Junio C Hamano

Merge branch 'ra/t3600-test-path-funcs'

A GSoC micro.

* ra/t3600-test-path-funcs:
  t3600: use helpers to replace test -d/f/e/s <path>
  t3600: modernize style
  test functions: add function `test_file_not_empty`
此差异已折叠。
......@@ -593,6 +593,15 @@ test_dir_is_empty () {
fi
}
# Check if the file exists and has a size greater than zero
test_file_not_empty () {
if ! test -s "$1"
then
echo "'$1' is not a non-empty file."
false
fi
}
test_path_is_missing () {
if test -e "$1"
then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册