diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test/chgrp.test | 2 | ||||
-rwxr-xr-x | scripts/test/rmdir.test | 4 | ||||
-rw-r--r-- | scripts/test/testing.sh | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/scripts/test/chgrp.test b/scripts/test/chgrp.test index 9c7142a4..2af93857 100755 --- a/scripts/test/chgrp.test +++ b/scripts/test/chgrp.test @@ -2,8 +2,6 @@ [ -f testing.sh ] && . testing.sh -VERBOSE=1 - if [ "$(id -u)" -ne 0 ] then echo "SKIPPED: chgrp (not root)" diff --git a/scripts/test/rmdir.test b/scripts/test/rmdir.test index bea75881..a7b027e0 100755 --- a/scripts/test/rmdir.test +++ b/scripts/test/rmdir.test @@ -45,6 +45,10 @@ mkdir -p one/two/three testing "rmdir -p one/two/three" \ "rmdir -p one/two/three && [ ! -e one ] && echo yes" "yes\n" "" "" +mkdir -p one/two/three +testing "rmdir -p one/two/three/" \ + "rmdir -p one/two/three/ && [ ! -e one ] && echo yes" "yes\n" "" "" + #mkdir -p one/two/three #chmod 000 one/two/three one/two one #testing "rmdir -p one/two/three" \ diff --git a/scripts/test/testing.sh b/scripts/test/testing.sh index 0f72bce4..b7eacc68 100644 --- a/scripts/test/testing.sh +++ b/scripts/test/testing.sh @@ -74,7 +74,7 @@ testing () echo -ne "$5" | eval "$2" > actual RETVAL=$? - cmp expected actual > /dev/null + cmp expected actual > /dev/null 2>&1 if [ $? -ne 0 ] then FAILCOUNT=$[$FAILCOUNT+1] |