From a7bde5a0e1fcae06a2a182f0acd74ef555843f59 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 10 Dec 2008 21:25:21 +0000 Subject: [PATCH] ebl Add some cleanup git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8139 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/tests/backup-acl-test | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) 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 -- 2.39.5