From 1d2071420b5d4946049c177845e8c822ecd84853 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Wed, 5 Jun 2019 09:55:54 +0200 Subject: [PATCH] output setup failures to testfailures.txt (#9188) --- js/client/modules/@arangodb/testing.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/js/client/modules/@arangodb/testing.js b/js/client/modules/@arangodb/testing.js index 9f9f9a01b6..052bce5c72 100755 --- a/js/client/modules/@arangodb/testing.js +++ b/js/client/modules/@arangodb/testing.js @@ -781,7 +781,21 @@ function unitTest (cases, options) { }; } - pu.setupBinaries(options.build, options.buildType, options.configDir); + try { + pu.setupBinaries(options.build, options.buildType, options.configDir); + } + catch (err) { + print(err); + return { + status: false, + crashed: true, + ALL: [{ + status: false, + failed: 1, + message: err.message + }] + }; + } const jsonReply = options.jsonReply; delete options.jsonReply;