diff options
Diffstat (limited to 'jstests/noPassthrough/libs/backup_restore.js')
| -rw-r--r-- | jstests/noPassthrough/libs/backup_restore.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jstests/noPassthrough/libs/backup_restore.js b/jstests/noPassthrough/libs/backup_restore.js index 2084fc8237d..119a9a7147f 100644 --- a/jstests/noPassthrough/libs/backup_restore.js +++ b/jstests/noPassthrough/libs/backup_restore.js @@ -308,7 +308,13 @@ 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 if the suite tests were running + // and returning SIGINT otherwise. It may also exit uncleanly, in which case + // stopMongoProgramByPid returns -SIGINT. See SERVER-67390 and SERVER-72449. + assert(exitCode == 130 || exitCode == -kSIGINT || exitCode == kSIGINT, + 'expected resmoke.py to exit due to being interrupted, but exited with code: ' + + exitCode); } // Make sure the databases are not in a drop-pending state. This can happen if we |
