Files
mongo/buildscripts/resmokelib/cli.py
Zack Winter 558f69287c SERVER-82192 Remove mongo-tooling-metrics (#35332)
GitOrigin-RevId: 289c8047fe9a9e8ff4ba6c3d48bea79fb379ee98
2025-04-23 20:24:47 +00:00

30 lines
889 B
Python

"""Command-line entry-point into resmoke."""
import os
import time
import psutil
from buildscripts.resmokelib import parser
def main(argv):
"""
Execute Main function for resmoke.
:param argv: sys.argv
:return: None
"""
__start_time = time.time()
os.environ["RESMOKE_PARENT_PROCESS"] = str(os.getpid())
os.environ["RESMOKE_PARENT_CTIME"] = str(psutil.Process().create_time())
subcommand = parser.parse_command_line(
argv[1:],
start_time=__start_time,
usage="Resmoke is MongoDB's correctness testing orchestrator.\n"
"For more information, see the help message for each subcommand.\n"
"For example: resmoke.py run -h\n"
"Note: bisect, setup-multiversion and symbolize subcommands have been moved to db-contrib-tool (https://github.com/10gen/db-contrib-tool#readme).\n",
)
subcommand.execute()