diff options
author | Mikhail Shchatko <mikhail.shchatko@mongodb.com> | 2020-02-13 11:18:03 +0300 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-21 13:29:43 +0000 |
commit | 9fb1edd400526809c917e99ac4cfb6c9473baf72 (patch) | |
tree | 6d7f1809563ebf49a886d5b3420d2b7f9338346d /src/mongo/shell/servers.js | |
parent | 564a36122ee2ca3685cd888ce183e112e2ec0a58 (diff) | |
download | mongo-9fb1edd400526809c917e99ac4cfb6c9473baf72.tar.gz |
SERVER-46029 Do not write core files in the hang analyzer when running locally (sans Evergreen)
Diffstat (limited to 'src/mongo/shell/servers.js')
-rw-r--r-- | src/mongo/shell/servers.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js index 679b42463c9..e8da72e8ba0 100644 --- a/src/mongo/shell/servers.js +++ b/src/mongo/shell/servers.js @@ -123,6 +123,11 @@ function runHangAnalyzer(pids) { return; } + if (!TestData.inEvergreen) { + print('Skipping runHangAnalyzer: not running in Evergreen'); + return; + } + if (!_hangAnalyzerEnabled) { print('Skipping runHangAnalyzer: manually disabled'); return; |