From: Marco van Wieringen Date: Fri, 6 Jan 2012 09:02:44 +0000 (+0100) Subject: Fix xattr/acl regression script. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=325d6f9b0ef4903a24091d1cfa813368d8233564;p=bacula%2Fbacula Fix xattr/acl regression script. The test for the second xattr was not working as we need to append to the logfile not overwrite it. --- diff --git a/regress/tests/acl-xattr-test b/regress/tests/acl-xattr-test index 0b412c5e3e..54afe5134a 100755 --- a/regress/tests/acl-xattr-test +++ b/regress/tests/acl-xattr-test @@ -116,7 +116,7 @@ case `uname -s` in ( cd $cwd/build getfacl -R acl > $cwd/tmp/org getfattr -h -n user.bacula.test $d/other > $cwd/tmp/attr.org - getfattr -h -n user.bacula.secondtest $d/other > $cwd/tmp/attr.org + getfattr -h -n user.bacula.secondtest $d/other >> $cwd/tmp/attr.org ) ;; Darwin) @@ -133,7 +133,7 @@ case `uname -s` in ( cd $cwd/build ls -lde -R acl > $cwd/tmp/org xattr -p bacula.test $d/other > $cwd/tmp/attr.org - xattr -p bacula.secondtest $d/other > $cwd/tmp/attr.org + xattr -p bacula.secondtest $d/other >> $cwd/tmp/attr.org ) ;; SunOS) @@ -164,7 +164,7 @@ EOF ( cd $cwd/build /bin/ls -ldv -R acl > $cwd/tmp/org /bin/runat $d/other 'cat bacula.test' > $cwd/tmp/attr.org - /bin/runat $d/other 'cat bacula.secondtest' > $cwd/tmp/attr.org + /bin/runat $d/other 'cat bacula.secondtest' >> $cwd/tmp/attr.org ) ;; FreeBSD) @@ -184,7 +184,7 @@ EOF getfacl $file done > $cwd/tmp/org getextattr user bacula.test $d/other > $cwd/tmp/attr.org - getextattr user bacula.secondtest $d/other > $cwd/tmp/attr.org + getextattr user bacula.secondtest $d/other >> $cwd/tmp/attr.org ) ;; NetBSD) @@ -195,7 +195,7 @@ EOF ( cd $cwd/build cp /dev/null $cwd/tmp/org getextattr user bacula.test $d/other > $cwd/tmp/attr.org - getextattr user bacula.secondtest $d/other > $cwd/tmp/attr.org + getextattr user bacula.secondtest $d/other >> $cwd/tmp/attr.org ) ;; esac @@ -234,21 +234,21 @@ case `uname -s` in ( cd $cwd/tmp/bacula-restores/$cwd/build getfacl -R acl > $cwd/tmp/new getfattr -h -n user.bacula.test $d/other > $cwd/tmp/attr.new - getfattr -h -n user.bacula.secondtest $d/other > $cwd/tmp/attr.new + getfattr -h -n user.bacula.secondtest $d/other >> $cwd/tmp/attr.new ) ;; Darwin) ( cd $cwd/tmp/bacula-restores/$cwd/build ls -lde -R acl > $cwd/tmp/new xattr -p bacula.test $d/other > $cwd/tmp/attr.new - xattr -p bacula.secondtest $d/other > $cwd/tmp/attr.new + xattr -p bacula.secondtest $d/other >> $cwd/tmp/attr.new ) ;; SunOS) ( cd $cwd/tmp/bacula-restores/$cwd/build /bin/ls -ldv -R acl > $cwd/tmp/new /bin/runat $d/other 'cat bacula.test' > $cwd/tmp/attr.new - /bin/runat $d/other 'cat bacula.secondtest' > $cwd/tmp/attr.new + /bin/runat $d/other 'cat bacula.secondtest' >> $cwd/tmp/attr.new ) ;; FreeBSD) @@ -258,14 +258,14 @@ case `uname -s` in getfacl $file done > $cwd/tmp/new getextattr user bacula.test $d/other > $cwd/tmp/attr.new - getextattr user bacula.secondtest $d/other > $cwd/tmp/attr.new + getextattr user bacula.secondtest $d/other >> $cwd/tmp/attr.new ) ;; NetBSD) ( cd $cwd/tmp/bacula-restores/$cwd/build cp /dev/null $cwd/tmp/new getextattr user bacula.test $d/other > $cwd/tmp/attr.new - getextattr user bacula.secondtest $d/other > $cwd/tmp/attr.new + getextattr user bacula.secondtest $d/other >> $cwd/tmp/attr.new ) ;; esac