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:
parent
0f996060bd
commit
d24b2849eb
@ -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";
|
||||
}
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user