Skip to content

Commit fde9794

Browse files
Remove unneeded use of FUZZ_TARGET (#4199)
1 parent dc2f4ac commit fde9794

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/clusterfuzz/_internal/bot/fuzzers/afl/launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1654,7 +1654,7 @@ def main(argv):
16541654

16551655
# Initialize variables.
16561656
testcase_file_path = argv[1]
1657-
target_name = environment.get_value('FUZZ_TARGET')
1657+
target_name = argv[2]
16581658
input_directory = environment.get_value('FUZZ_CORPUS_DIR')
16591659

16601660
# FIXME: Remove this once AFL is migrated to the new engine impl and runs in

src/clusterfuzz/_internal/tests/core/bot/fuzzers/afl/afl_launcher_integration_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ def call_f(self, *args, **kwargs):
5656
def run_launcher(*args):
5757
"""Run launcher.py."""
5858
mock_stdout = test_utils.MockStdout()
59-
60-
os.environ['FUZZ_TARGET'] = args[1]
6159
with mock.patch('sys.stdout', mock_stdout):
6260
launcher.main(['launcher.py'] + list(args))
6361

0 commit comments

Comments
 (0)