diff --git a/js/client/modules/@arangodb/testing.js b/js/client/modules/@arangodb/testing.js index 396e528dd2..a87ec20b23 100644 --- a/js/client/modules/@arangodb/testing.js +++ b/js/client/modules/@arangodb/testing.js @@ -3201,7 +3201,13 @@ function runArangodRecovery (instanceInfo, options, script, setup) { fs.join('.', 'js', 'server', 'tests', 'recovery', script + '.js') ]); - instanceInfo.pid = executeAndWait(ARANGOD_BIN, argv, options); + let binary = ARANGOD_BIN; + if (setup) { + binary = TOP_DIR + '/scripts/disable-cores.sh'; + argv.unshift(ARANGOD_BIN); + } + + instanceInfo.pid = executeAndWait(binary, argv, options); } const recoveryTests = [ diff --git a/scripts/disable-cores.sh b/scripts/disable-cores.sh new file mode 100755 index 0000000000..24439f7200 --- /dev/null +++ b/scripts/disable-cores.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +ulimit -c 0 +exec $@