]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
TestLFNIndex.cc: don't use "cp --preserve=xattr"
authorYan, Zheng <zyan@redhat.com>
Thu, 30 Jul 2015 10:15:18 +0000 (18:15 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Aug 2015 08:00:27 +0000 (16:00 +0800)
--preserve option is not supported by OSX's cp. use 'cp -a' instead

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/test/os/TestLFNIndex.cc

index 37733af57c90072f8a366ac6ad3cce2c91a49529..5e44355c1e7af0539563bbdb719bcc7e4b087e70 100644 (file)
@@ -308,7 +308,7 @@ TEST_F(TestLFNIndex, remove_object) {
     std::string mangled_name_1 = mangled_name;
     mangled_name_1.replace(mangled_name_1.find("0_long"), 6, "1_long");
     const std::string pathname_1("PATH_1/" + mangled_name_1);
-    const std::string cmd("cp --preserve=xattr " + pathname + " " + pathname_1);
+    const std::string cmd("cp -a " + pathname + " " + pathname_1);
     EXPECT_EQ(0, ::system(cmd.c_str()));
     const string ATTR = "user.MARK";
     EXPECT_EQ((unsigned)1, (unsigned)chain_setxattr(pathname_1.c_str(), ATTR.c_str(), "Y", 1));