]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
run-make-check.sh: run tests in two steps
authorKefu Chai <kchai@redhat.com>
Wed, 13 Jul 2016 13:44:31 +0000 (21:44 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Jul 2016 04:00:46 +0000 (12:00 +0800)
this is a workaround of the timeout found in jenkins. currently three
tests are found timeout, and they are labeld with "Racing" and
"LongRunning". so, to workaround this issue, we run the tests in two
phases:

1. run the racing tests with -j1
2. run the non-racing tests with -jN

if we all all tests with -j1, the total test time is 2683.57 sec

Signed-off-by: Kefu Chai <kchai@redhat.com>
run-make-check.sh

index 16c0672730f8e4b856fbb548f873eb320cb18466..880d6011efa90a7ad329e4f3cd563c6599e312cd 100755 (executable)
@@ -69,7 +69,8 @@ function run() {
         $DRY_RUN ./do_cmake.sh || return 1
         cd build
         $DRY_RUN make $BUILD_MAKEOPTS tests || return 1
-        $DRY_RUN ctest $CHECK_MAKEOPTS --output-on-failure || return 1
+        $DRY_RUN ctest -L Racing -j1 --output-on-failure || return 1
+        $DRY_RUN ctest -LE Racing $CHECK_MAKEOPTS --output-on-failure || return 1
     else
         $DRY_RUN ./autogen.sh || return 1
         $DRY_RUN ./configure "$@"  --with-librocksdb-static --disable-static --with-radosgw --with-debug --without-lttng \