]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: update the ffsb.sh to clone it from git://git.ceph.com/ffsb.git 40842/head
authorXiubo Li <xiubli@redhat.com>
Wed, 14 Apr 2021 02:35:02 +0000 (10:35 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 6 May 2021 06:00:45 +0000 (14:00 +0800)
Have add a ffsb repo under git://git.ceph.com/ to tracker the change
histories. And in that repo we have modernize the form of AM_INIT_AUTOMAKE.

Fixes: https://tracker.ceph.com/issues/48365
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/workunits/suites/ffsb.patch [deleted file]
qa/workunits/suites/ffsb.sh

diff --git a/qa/workunits/suites/ffsb.patch b/qa/workunits/suites/ffsb.patch
deleted file mode 100644 (file)
index a512175..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urp 1/parser.c 2/parser.c
---- 1/parser.c 2008-10-28 04:17:05.000000000 +0800
-+++ 2/parser.c 2018-06-26 20:25:59.000000000 +0800
-@@ -203,7 +203,7 @@ static char *get_optstr(char *buf, char 
-       len = strnlen(string, BUFSIZE);
-       sprintf(search_str, "%s=%%%ds\\n", string, BUFSIZE - len-1);
-       if (1 == sscanf(line, search_str, &temp)) {
--              len = strnlen(temp, 4096);
-+              len = strnlen(temp, 4095) + 1;
-               ret_buf = malloc(len);
-               strncpy(ret_buf, temp, len);
-               return ret_buf;
index e44519553d34bfd126151fc87d2b7b4312ea48cf..a6ec7d198af9cdfbc4d6f9686b5ba2bc231288a5 100755 (executable)
@@ -4,10 +4,18 @@ set -e
 
 mydir=`dirname $0`
 
-wget http://download.ceph.com/qa/ffsb.tar.bz2
-tar jxvf ffsb.tar.bz2
-cd ffsb-6.0-rc2
-patch -p1 < $mydir/ffsb.patch
+# try it again if the clone is slow and the second time
+trap -- 'retry' EXIT
+retry() {
+    rm -rf ffsb
+    # double the timeout value
+    timeout 3600 git clone git://git.ceph.com/ffsb.git --depth 1
+}
+rm -rf ffsb
+timeout 1800 git clone git://git.ceph.com/ffsb.git --depth 1
+trap - EXIT
+
+cd ffsb
 ./configure
 make
 cd ..
@@ -16,7 +24,7 @@ cd tmp
 
 for f in $mydir/*.ffsb
 do
-    ../ffsb-*/ffsb $f
+    ../ffsb/ffsb $f
 done
 cd ..
 rm -r tmp ffsb*