[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: let mkdir/p-v.sh fail when compare fails
From: |
Bernhard Voelker |
Subject: |
[PATCH] tests: let mkdir/p-v.sh fail when compare fails |
Date: |
Sun, 17 Apr 2016 13:27:14 +0200 |
* tests/mkdir/p-v.sh: Set fail=1 when compare fails: the latter only
sets a non-Zero return code; evaluating that is up to the caller.
---
tests/mkdir/p-v.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/mkdir/p-v.sh b/tests/mkdir/p-v.sh
index 3b5a136..0a9004b 100755
--- a/tests/mkdir/p-v.sh
+++ b/tests/mkdir/p-v.sh
@@ -21,7 +21,7 @@ print_ver_ mkdir
mkdir -pv foo/a/b/c/d >out || fail=1
-compare - out <<\EOF
+compare - out <<\EOF || fail=1
mkdir: created directory 'foo'
mkdir: created directory 'foo/a'
mkdir: created directory 'foo/a/b'
--
2.1.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: let mkdir/p-v.sh fail when compare fails,
Bernhard Voelker <=