8000 Cleaner test output, enhanced filters. by adityamukho · Pull Request #16021 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content
< 8000 div id="files_bucket" class="files-bucket files-next-bucket clearfix pull-request-tab-content is-visible js-multi-line-comments-enabled">

Cleaner test output, enhanced filters. #16021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added option to suppress server start/stop messages printed by proces…
…s manager.
  • Loading branch information
Aditya Mukhopadhyay committed Mar 21, 2022
commit d5022f16663e349082b0a82f41a2630dd2fec966
10 changes: 8 additions & 2 deletions js/client/modules/@arangodb/testutils/process-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,10 @@ function shutdownInstance (instanceInfo, options, forceTerminate) {
if (b.role === 'agent') return -1;
return 0;
});
print(Date() + ' Shutdown order ' + JSON.stringify(toShutdown));

if (options.extremeVerbosity || !options.noStartStopLogs) {
print(Date() + ' Shutdown order ' + JSON.stringify(toShutdown));
}

let nonAgenciesCount = instanceInfo.arangods
.filter(arangod => {
Expand Down Expand Up @@ -1733,7 +1736,10 @@ function shutdownInstance (instanceInfo, options, forceTerminate) {
arangod.exitStatus = {
status: 'RUNNING'
};
print(Date() + " Commanded shut down: " + JSON.stringify(arangod));

if (options.extremeVerbosity || !options.noStartStopLogs) {
print(Date() + " Commanded shut down: " + JSON.stringify(arangod));
}
}
return true;
}
Expand Down
2 changes: 2 additions & 0 deletions js/client/modules/@arangodb/testutils/testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ let optionsDocumentation = [
' - `crashAnalysisText`: output of debugger in case of crash',
' - `getSockStat`: on linux collect socket stats before shutdown',
' - `verbose`: if set to true, be more verbose',
' - `noStartStopLogs`: if set to true, suppress startup and shutdown messages printed by process manager. Overridden by `extremeVerbosity`',
' - `extremeVerbosity`: if set to true, then there will be more test run',
' output, especially for cluster tests.',
' - `testCase`: filter a jsunity testsuite for one special test case',
Expand Down Expand Up @@ -227,6 +228,7 @@ const optionsDefaults = {
'valgrindArgs': {},
'valgrindHosts': false,
'verbose': false,
'noStartStopLogs': false,
'vst': false,
'http2': false,
'walFlushTimeout': 30000,
Expand Down
0