diff options
author | Leo Neat <lneat@google.com> | 2020-03-24 10:04:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 10:04:27 -0700 |
commit | 4c01a56101742036f5bb43428e10260f57673a62 (patch) | |
tree | b2dcc7e52807f63dbf2b91090cfe8bdea2e93c65 /infra/helper.py | |
parent | cb09eba1ea4720f08110c9b5f988b80000670da9 (diff) | |
download | oss-fuzz-4c01a56101742036f5bb43428e10260f57673a62.tar.gz |
OSSFUZZ to OSS_FUZZ (#3535)
Changing the helper variable OSSFUZZ_DIR name to OSS_FUZZ_DIR as per request in #3516.
Diffstat (limited to 'infra/helper.py')
-rwxr-xr-x | infra/helper.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/infra/helper.py b/infra/helper.py index 24427a949..bf3158295 100755 --- a/infra/helper.py +++ b/infra/helper.py @@ -30,8 +30,8 @@ import subprocess import sys import templates -OSSFUZZ_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) -BUILD_DIR = os.path.join(OSSFUZZ_DIR, 'build') +OSS_FUZZ_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) +BUILD_DIR = os.path.join(OSS_FUZZ_DIR, 'build') BASE_IMAGES = [ 'gcr.io/oss-fuzz-base/base-image', @@ -59,7 +59,7 @@ CORPUS_BACKUP_URL_FORMAT = ( def main(): # pylint: disable=too-many-branches,too-many-return-statements,too-many-statements """Get subcommand from program arguments and do it.""" - os.chdir(OSSFUZZ_DIR) + os.chdir(OSS_FUZZ_DIR) if not os.path.exists(BUILD_DIR): os.mkdir(BUILD_DIR) @@ -260,7 +260,7 @@ def _get_command_string(command): def _get_project_dir(project_name): """Returns path to the project.""" - return os.path.join(OSSFUZZ_DIR, 'projects', project_name) + return os.path.join(OSS_FUZZ_DIR, 'projects', project_name) def get_dockerfile_path(project_name): |