From c75d1b362f2c21fd0c66cbec2eae6d1195d99142 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Mon, 2 Aug 2021 12:37:37 -0700 Subject: [cifuzz] Create validate method on BaseConfig (#6135) * [cifuzz] Create validate method on BaseConfig Use it to validate that either OSS_FUZZ_PROJECT_NAME or BUILD_INTEGRATION_PATH is set. Also use it to validate that workspace is set (rather than duplicate code). Add tests. * Use env var hack to bypass valdiation * fix * fix * fmt * fix * tmp * fix --- infra/cifuzz/build_fuzzers_entrypoint.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'infra/cifuzz/build_fuzzers_entrypoint.py') diff --git a/infra/cifuzz/build_fuzzers_entrypoint.py b/infra/cifuzz/build_fuzzers_entrypoint.py index 4acbb3622..c191ca38e 100644 --- a/infra/cifuzz/build_fuzzers_entrypoint.py +++ b/infra/cifuzz/build_fuzzers_entrypoint.py @@ -37,10 +37,6 @@ def build_fuzzers_entrypoint(): # The default return code when an error occurs. returncode = 1 - if not config.workspace: - logging.error('This script needs to be run within Github actions.') - return returncode - if not build_fuzzers.build_fuzzers(config): logging.error('Error building fuzzers for (commit: %s, pr_ref: %s).', config.commit_sha, config.pr_ref) -- cgit v1.2.3