Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.

Commit

Permalink
Disable version check for newer pip releases (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
whimboo committed Mar 24, 2016
1 parent 349a9c5 commit 4fd8219
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions jenkins-master/jobs/scripts/workspace/runtests.py
Expand Up @@ -18,8 +18,14 @@

here = os.path.dirname(os.path.abspath(__file__))

# Extra environment variables we want to set
EXTRA_ENV_VARS = {
'MINIDUMP_SAVE_PATH': os.path.join(here, 'minidumps'), # save off minidump files
'PIP_DISABLE_PIP_VERSION_CHECK': '1', # No version checks
}

# Purge unwanted environment variables like credentials
ENV_VARS_TO_PURGE = [
PURGE_ENV_VARS = [
'AWS_BUCKET', 'AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY',
'TREEHERDER_URL', 'TREEHERDER_CLIENT_ID', 'TREEHERDER_SECRET',
]
Expand Down Expand Up @@ -49,11 +55,10 @@ def __init__(self, settings, **kwargs):

# Purge unwanted environment variables (Treeherder and AWS credentials)
self.env = copy.copy(os.environ)
for var in ENV_VARS_TO_PURGE:
for var in PURGE_ENV_VARS:
self.env.pop(var, None)

# Set environment variable to let mozcrash save a copy of the minidump files
self.env.update({'MINIDUMP_SAVE_PATH': os.path.join(here, 'minidumps')})
self.env.update(EXTRA_ENV_VARS)

def query_args(self):
"""Returns all required and optional command line arguments."""
Expand Down

0 comments on commit 4fd8219

Please sign in to comment.