Skip to content

Commit

Permalink
fix output of result yaml, but we only want it if extreme verbosity i…
Browse files Browse the repository at this point in the history
…s set.
  • Loading branch information
dothebart committed Apr 18, 2017
1 parent ece6a0c commit d36a91e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions js/client/modules/@arangodb/testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d36a91e

Please sign in to comment.