summaryrefslogtreecommitdiff
path: root/buildscripts/resmoke.py
blob: 9cc54d5c5f3721437ed3cc754d6201e93116e779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3
"""Command line utility for executing MongoDB tests of all kinds."""

import os.path
import sys
import time

# Get relative imports to work when the package is not installed on the PYTHONPATH.
if __name__ == "__main__" and __package__ is None:
    sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

# pylint: disable=wrong-import-position
from buildscripts.resmokelib import parser


def main():
    """Execute Main function for resmoke."""
    __start_time = time.time()
    subcommand = parser.parse_command_line(sys.argv[1:], start_time=__start_time)
    subcommand.execute()


if __name__ == "__main__":
    main()