1
0
Fork 0

fix output of result yaml, but we only want it if extreme verbosity is set.

This commit is contained in:
Wilfried Goesgens 2017-04-18 15:25:01 +02:00
parent ece6a0c035
commit d36a91e694
1 changed files with 7 additions and 5 deletions

View File

@ -511,12 +511,14 @@ function unitTest (cases, options) {
print("not cleaning up since we didn't start the server ourselves\n");
}
if (options.extremeVerbosity === true) {
try {
yaml.safeDump(JSON.parse(JSON.stringify(results)));
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) {
return results;