Change a few functions that relied on a "false" being the last
statement in the function to use an explicit "return 1" like the other
functions in this file.
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
---
t/test-lib-functions.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 2518a9b8274..c46bf0ff09c 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -763,7 +763,7 @@ test_path_is_file () {
if ! test -f "$1"
then
echo "File $1 doesn't exist"
- false
+ return 1
fi
}
@@ -772,7 +772,7 @@ test_path_is_dir () {
if ! test -d "$1"
then
echo "Directory $1 doesn't exist"
- false
+ return 1
fi
}
@@ -781,7 +781,7 @@ test_path_exists () {
if ! test -e "$1"
then
echo "Path $1 doesn't exist"
- false
+ return 1
fi
}
@@ -803,7 +803,7 @@ test_file_not_empty () {
if ! test -s "$1"
then
echo "'$1' is not a non-empty file."
- false
+ return 1
fi
}
--
2.31.1.634.gb41287a30b0