From c9e822cc7f7fc4888ce9e200d09380c022ef2edd Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Mon, 25 Sep 2023 12:53:03 +0200 Subject: [PATCH] ci --- fuzzers/aflplusplus_fishfuzz/fuzzer.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fuzzers/aflplusplus_fishfuzz/fuzzer.py b/fuzzers/aflplusplus_fishfuzz/fuzzer.py index ccb200c25..3f566598a 100755 --- a/fuzzers/aflplusplus_fishfuzz/fuzzer.py +++ b/fuzzers/aflplusplus_fishfuzz/fuzzer.py @@ -31,18 +31,19 @@ def get_uninstrumented_build_directory(target_directory): return os.path.join(target_directory, 'uninstrumented') +# pylint: disable=consider-using-f-string def prepare_tmp_files(tmp_dir): """ Prepare tmp files.""" if not os.path.isdir(tmp_dir) or os.path.exists(tmp_dir): os.mkdir(tmp_dir) - os.mkdir(f'%s/idlog' % (tmp_dir)) - os.mkdir(f'%s/cg' % (tmp_dir)) - os.mkdir(f'%s/fid' % (tmp_dir)) - os.system(f'touch %s/idlog/fid %s/idlog/targid' % (tmp_dir, tmp_dir)) + os.mkdir('%s/idlog' % (tmp_dir)) + os.mkdir('%s/cg' % (tmp_dir)) + os.mkdir('%s/fid' % (tmp_dir)) + os.system('touch %s/idlog/fid %s/idlog/targid' % (tmp_dir, tmp_dir)) def set_ff_env(): - # set FishFuzz Env before build + """ set FishFuzz Env before build. """ os.environ['TMP_DIR'] = os.environ['OUT'] + '/TEMP' os.environ['FF_TMP_DIR'] = os.environ['OUT'] + '/TEMP' prepare_tmp_files(os.environ['TMP_DIR'])