mirror of https://gitee.com/bigwinds/arangodb
fix output of result yaml, but we only want it if extreme verbosity is set.
This commit is contained in:
parent
ece6a0c035
commit
d36a91e694
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue