summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Jin Kang Park <yujin.kang@mongodb.com>2022-06-27 08:11:48 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-31 09:54:48 +0000
commit948b8eb1f1f697949e2e46cf88f6d3da76afce8a (patch)
tree5305392d8cacfe8f5b7ed87c8aa0df5939c116f1
parent58a2c8137cc2abfdf2bf274d2cc9aee645f9f519 (diff)
downloadmongo-948b8eb1f1f697949e2e46cf88f6d3da76afce8a.tar.gz
SERVER-67390: backup_restore.js should also allow exit code -SIGINT
(cherry picked from commit e71996210dbfa8c6783c83dec9a828bcb675c001)
-rw-r--r--jstests/noPassthrough/libs/backup_restore.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/noPassthrough/libs/backup_restore.js b/jstests/noPassthrough/libs/backup_restore.js
index 2084fc8237d..acf51ee5b8f 100644
--- a/jstests/noPassthrough/libs/backup_restore.js
+++ b/jstests/noPassthrough/libs/backup_restore.js
@@ -308,7 +308,11 @@ var BackupRestoreTest = function(options) {
if (!_isWindows()) {
// The mongo shell calls TerminateProcess() on Windows rather than more gracefully
// interrupting resmoke.py test execution.
- assert.eq(130, exitCode, 'expected resmoke.py to exit due to being interrupted');
+
+ // resmoke.py may exit cleanly on SIGINT returning 130, or uncleanly in which case
+ // stopMongoProgramByPid returns -SIGINT.
+ assert(exitCode == 130 || exitCode == -kSIGINT,
+ 'expected resmoke.py to exit due to being interrupted');
}
// Make sure the databases are not in a drop-pending state. This can happen if we