summaryrefslogtreecommitdiff
path: root/buildscripts/evergreen_resmoke_job_count.py
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-02-19 10:50:57 -0500
committerMathew Robinson <chasinglogic@gmail.com>2019-04-08 14:08:49 -0400
commit8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6 (patch)
tree69e936c4953cbead2e3bae2690157c5fe75e709d /buildscripts/evergreen_resmoke_job_count.py
parentc600aa9d7423eca8151daf626e2799d9a6c7b31c (diff)
downloadmongo-8dd6d4755734ed37c1b98dfdefce3ca6bc65f1f6.tar.gz
SERVER-32295 Support Python 3
Diffstat (limited to 'buildscripts/evergreen_resmoke_job_count.py')
-rw-r--r--buildscripts/evergreen_resmoke_job_count.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/buildscripts/evergreen_resmoke_job_count.py b/buildscripts/evergreen_resmoke_job_count.py
index 098c65130cc..bf6d99bba9d 100644
--- a/buildscripts/evergreen_resmoke_job_count.py
+++ b/buildscripts/evergreen_resmoke_job_count.py
@@ -1,9 +1,6 @@
#!/usr/bin/env python
"""Determine the number of resmoke jobs to run."""
-from __future__ import division
-from __future__ import print_function
-
import argparse
import platform
import re
@@ -76,15 +73,18 @@ def main():
parser.add_argument("--taskName", dest="task", required=True, help="Task being executed.")
parser.add_argument("--buildVariant", dest="variant", required=True,
help="Build variant task is being executed on.")
- parser.add_argument("--jobFactor", dest="jobs_factor", type=float, default=1.0,
- help=("Job factor to use as a mulitplier with the number of CPUs. Defaults"
- " to %(default)s."))
- parser.add_argument("--jobsMax", dest="jobs_max", type=int, default=0,
- help=("Maximum number of jobs to use. Specify 0 to indicate the number of"
- " jobs is determined by --jobFactor and the number of CPUs. Defaults"
- " to %(default)s."))
- parser.add_argument("--outFile", dest="outfile", help=("File to write configuration to. If"
- " unspecified no file is generated."))
+ parser.add_argument(
+ "--jobFactor", dest="jobs_factor", type=float, default=1.0,
+ help=("Job factor to use as a mulitplier with the number of CPUs. Defaults"
+ " to %(default)s."))
+ parser.add_argument(
+ "--jobsMax", dest="jobs_max", type=int, default=0,
+ help=("Maximum number of jobs to use. Specify 0 to indicate the number of"
+ " jobs is determined by --jobFactor and the number of CPUs. Defaults"
+ " to %(default)s."))
+ parser.add_argument(
+ "--outFile", dest="outfile", help=("File to write configuration to. If"
+ " unspecified no file is generated."))
options = parser.parse_args()