]> git.proxmox.com Git - ceph.git/blobdiff - ceph/run-make-check.sh
update sources to v12.1.3
[ceph.git] / ceph / run-make-check.sh
index 4ec97be2fcde7fc7d96bafc4cc67e9fe1d61d4fa..aa8f8ed28f82b28a5230d2354ef3b52bea935eeb 100755 (executable)
@@ -71,7 +71,12 @@ function run() {
     $DRY_RUN ./do_cmake.sh $@ || return 1
     $DRY_RUN cd build
     $DRY_RUN make $BUILD_MAKEOPTS tests || return 1
-    $DRY_RUN ctest $CHECK_MAKEOPTS --output-on-failure || return 1
+    # prevent OSD EMFILE death on tests
+    $DRY_RUN sudo ulimit -n 32768
+    if ! $DRY_RUN ctest $CHECK_MAKEOPTS --output-on-failure; then
+        rm -f ${TMPDIR:-/tmp}/ceph-asok.*
+        return 1
+    fi
 }
 
 function main() {