From: Eric Bollengier Date: Wed, 10 Dec 2008 21:25:21 +0000 (+0000) Subject: ebl Add some cleanup X-Git-Tag: Release-7.0.0~3653 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7bde5a0e1fcae06a2a182f0acd74ef555843f59;p=bacula%2Fbacula ebl Add some cleanup git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8139 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/backup-acl-test b/regress/tests/backup-acl-test index 026ff31009..125b0732f7 100755 --- a/regress/tests/backup-acl-test +++ b/regress/tests/backup-acl-test @@ -38,9 +38,12 @@ setfacl -m user:nobody:--- $d/bconsole setfacl -m group:nogroup:--x $d/bconsole cp ${cwd}/bin/bconsole $d/testdir cp ${cwd}/bin/bconsole $d/other -#setfattr -n bacula -v rulez $d/other +setfattr -n bacula.test -v rulez $d/other -(cd $cwd/build; getfacl -R acl > $cwd/tmp/org) +( cd $cwd/build + getfacl -R acl > $cwd/tmp/org + getfattr -R acl > $cwd/tmp/attr.org +) change_jobname Client1 $JobName start_test @@ -69,13 +72,23 @@ run_bacula check_for_zombie_jobs storage=File stop_bacula -(cd $cwd/tmp/bacula-restores/$cwd/build; getfacl -R acl > $cwd/tmp/new) +( cd $cwd/tmp/bacula-restores/$cwd/build + getfacl -R acl > $cwd/tmp/new + getfattr -R acl > $cwd/tmp/attr.new +) diff $cwd/tmp/org $cwd/tmp/new if [ $? -ne 0 ]; then rstat=1 fi +diff $cwd/tmp/attr.org $cwd/tmp/attr.new +if [ $? -ne 0 ]; then + rstat=1 +fi + +rm -rf $d + check_two_logs check_restore_diff