]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/fsstress.sh: fix 'cp not writing through dangling symlink' 5595/head
authorYan, Zheng <zyan@redhat.com>
Tue, 18 Aug 2015 07:22:55 +0000 (15:22 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 18 Aug 2015 07:26:34 +0000 (15:26 +0800)
On some test machines, /usr/lib/ltp/testcases/bin/fsstress is
dangling symlink. 'cp -f' is impotent in this case.

Fixes: #12710
Signed-off-by: Yan, Zheng <zyan@redhat.com>
qa/workunits/suites/fsstress.sh

index 394e5fad991ea5cfc0c2f05054bd32cf8957a7b5..e7952019255e9fb1e8e8a886ec72791b22d07868 100755 (executable)
@@ -11,7 +11,7 @@ then
     cd /tmp/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress
     make
     sudo mkdir -p /usr/lib/ltp/testcases/bin
-    sudo cp -avf /tmp/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress/fsstress /usr/lib/ltp/testcases/bin/fsstress
+    sudo cp -av --remove-destination /tmp/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress/fsstress /usr/lib/ltp/testcases/bin/fsstress
     sudo chmod 755 /usr/lib/ltp/testcases/bin/fsstress
     rm -Rf /tmp/fsstress
     cd $path