]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: let mkdir/p-v.sh fail when compare fails
authorBernhard Voelker <mail@bernhard-voelker.de>
Sun, 17 Apr 2016 11:19:22 +0000 (13:19 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Mon, 18 Apr 2016 21:30:41 +0000 (23:30 +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

index 3b5a136338c956547a097244cada1c143556dc3c..0a9004b462a1774c09a04d0d3bc6c73ad9b11423 100755 (executable)
@@ -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'