summaryrefslogtreecommitdiff
path: root/tests/libtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest.sh')
-rw-r--r--tests/libtest.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/libtest.sh b/tests/libtest.sh
index 7d726a5c..e9d4450c 100644
--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -78,6 +78,12 @@ assert_file_has_content () {
fi
}
+assert_file_empty() {
+ if test -s "$1"; then
+ echo 1>&2 "File '$1' is not empty"; exit 1
+ fi
+}
+
setup_test_repository () {
mode=$1
shift