0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-18371 Fix FIPS test for platforms without FIPS support

This commit is contained in:
Jonathan Reams 2015-06-04 17:15:52 -04:00
parent 1fd0c2e38c
commit 170a926471

View File

@ -18,8 +18,9 @@ var mongo = runMongoProgram("mongo",
// if mongo shell didn't start/connect properly
if (mongo != 0) {
print("mongod failed to start, checking for FIPS support");
assert(rawMongoProgramOutput().match(
/this version of mongodb was not compiled with FIPS support/));
mongoOutput = rawMongoProgramOutput()
assert(mongoOutput.match(/this version of mongodb was not compiled with FIPS support/) ||
mongoOutput.match(/FIPS_mode_set:fips mode not supported/))
}
else {
// verify that auth works, SERVER-18051