From 604e76f534480e8e6225372f8638ef242698b27d Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Tue, 26 Apr 2011 10:06:54 -0700 Subject: [PATCH] test-obsync.py: add tests with --no-preserve-acls Signed-off-by: Colin McCabe --- src/obsync/test-obsync.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/obsync/test-obsync.py b/src/obsync/test-obsync.py index b0c60d84e9bdd..ba7aca3bf477d 100755 --- a/src/obsync/test-obsync.py +++ b/src/obsync/test-obsync.py @@ -225,6 +225,10 @@ if os.path.exists("/%s/dir1c/a" % tdir): raise RuntimeError("error: running with --delete-after \ failed to delete files from the destination!") +# test with --no-preserve-acls +obsync_check("file://%s/dir1" % tdir, "file://%s/dir1b2" % tdir, + ["--no-preserve-acls", "-c"]) + if (len(opts.buckets) >= 1): # first, let's empty out the S3 bucket os.mkdir("%s/empty1" % tdir) @@ -280,6 +284,12 @@ if (len(opts.buckets) >= 1): obsync_check(opts.buckets[0], "file://%s/escape_dir2" % tdir, ["-c"]) compare_directories("%s/escape_dir1" % tdir, "%s/escape_dir2" % tdir) + # some more tests with --no-preserve-acls + obsync_check("file://%s/dir1" % tdir, opts.buckets[0], + ["--no-preserve-acls"]) + obsync_check(opts.buckets[0], "file://%s/dir1_no-preserve-acls" % tdir, + ["--no-preserve-acls", "-c"]) + if (len(opts.buckets) >= 2): if (opts.verbose): print "copying dir1 to bucket0..." -- 2.39.5