0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

SERVER-42378 Validate python environment before config expansion timeout test

This commit is contained in:
Jonathan Reams 2019-07-24 12:05:25 -04:00
parent 0f996060bd
commit d24b2849eb
No known key found for this signature in database
GPG Key ID: BFC3C11579AD87D6
2 changed files with 12 additions and 2 deletions

View File

@ -14,6 +14,14 @@ function getPython3Binary() {
}
}
assert(fileExists(cmd), "Python3 interpreter not found");
return cmd;
if (fileExists(cmd)) {
return cmd;
}
clearRawMongoProgramOutput();
assert.eq(runNonMongoProgram("python", "--version"), 0);
const pythonVersion = rawMongoProgramOutput();
assert(/Python 3/.exec(pythonVersion));
return "python";
}

View File

@ -5,6 +5,8 @@
load('jstests/noPassthrough/libs/configExpand/lib.js');
assert.eq(runNonMongoProgram.apply(null, makeReflectionCmd('12345', {sleep: 0}).split(" ")), 0);
// Sleep 10 seconds during request.
configExpandSuccess({
setParameter: {