]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/fsstress.sh: fix 'cp not writing through dangling symlink' 7454/head
authorYan, Zheng <zyan@redhat.com>
Tue, 18 Aug 2015 07:22:55 +0000 (15:22 +0800)
committerLoic Dachary <ldachary@redhat.com>
Mon, 1 Feb 2016 03:33:22 +0000 (10:33 +0700)
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>
(cherry picked from commit 479f2a760baf6af4714d3391a366a6b3acf1bcaf)

qa/workunits/suites/fsstress.sh

index 7732494e09ec3096a87fb1ba6139da90e2fb0c62..1951106ae621432c3ed7c79be202149059f813dd 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