From d36a91e6944bbdf9e22e54bea6e71a2ed4d1a954 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Tue, 18 Apr 2017 15:25:01 +0200 Subject: [PATCH] fix output of result yaml, but we only want it if extreme verbosity is set. --- js/client/modules/@arangodb/testing.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/js/client/modules/@arangodb/testing.js b/js/client/modules/@arangodb/testing.js index 7e81082c02..a7725b53d9 100644 --- a/js/client/modules/@arangodb/testing.js +++ b/js/client/modules/@arangodb/testing.js @@ -511,11 +511,13 @@ function unitTest (cases, options) { print("not cleaning up since we didn't start the server ourselves\n"); } - try { - yaml.safeDump(JSON.parse(JSON.stringify(results))); - } catch (err) { - print(RED + 'cannot dump results: ' + String(err) + RESET); - print(RED + require('internal').inspect(results) + RESET); + if (options.extremeVerbosity === true) { + try { + print(yaml.safeDump(JSON.parse(JSON.stringify(results)))); + } catch (err) { + print(RED + 'cannot dump results: ' + String(err) + RESET); + print(RED + require('internal').inspect(results) + RESET); + } } if (jsonReply === true) {