summaryrefslogtreecommitdiff
path: root/buildscripts/resmoke.py
diff options
context:
space:
mode:
authorRob Guo <robertguo@me.com>2017-10-04 15:41:52 -0400
committerRob Guo <robertguo@me.com>2017-10-04 15:50:59 -0400
commit381c7fc06c8f97d83ec5e7681004a2c67e4e1299 (patch)
tree74cfac2592d37a4b1bd8cff94d4cc52ebc540992 /buildscripts/resmoke.py
parente329bd234dc00535b36a47ae998cf24a40552968 (diff)
downloadmongo-381c7fc06c8f97d83ec5e7681004a2c67e4e1299.tar.gz
SERVER-30839 prevent buildscripts/combine_reports.py from overwriting report.json
Diffstat (limited to 'buildscripts/resmoke.py')
-rwxr-xr-xbuildscripts/resmoke.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildscripts/resmoke.py b/buildscripts/resmoke.py
index 29591ef57a3..aa8d437d815 100755
--- a/buildscripts/resmoke.py
+++ b/buildscripts/resmoke.py
@@ -12,9 +12,8 @@ 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__))))
- from buildscripts import resmokelib
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from buildscripts import resmokelib
def _execute_suite(suite):