Skip to content

Commit

Permalink
Fix libClusterFuzz env vars. (#2435)
Browse files Browse the repository at this point in the history
bot/env.yaml does not exist in libClusterFuzz. Just set the ones we
need.
  • Loading branch information
oliverchang authored Aug 27, 2021
1 parent aa6476c commit 47186fa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/clusterfuzz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
if not os.getenv('ROOT_DIR') and not os.getenv('GAE_ENV'):
# If ROOT_DIR isn't set by the time we import this and we're not on GAE,
# assume we're libClusterFuzz.
# Actual value does not matter, it just needs to be set.
os.environ['ROOT_DIR'] = '/tmp'
os.environ['LIB_CF'] = 'True'
this_dir = os.path.dirname(os.path.abspath(__file__))
os.environ['CONFIG_DIR_OVERRIDE'] = os.path.join(this_dir, 'lib-config')
os.environ['ROOT_DIR'] = os.path.dirname(os.path.dirname(this_dir))
os.environ['LIB_CF'] = 'True'

from ._internal.system import environment
environment.set_default_vars()
# Other necessary env vars.
os.environ['FAIL_RETRIES'] = '1'
os.environ['FAIL_WAIT'] = '10'

0 comments on commit 47186fa

Please sign in to comment.