Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(998)

Unified Diff: tools/ipc_fuzzer/scripts/utils.py

Issue 2109853002: [IPC fuzzer] Properly generate clusterfuzz flags files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/ipc_fuzzer/scripts/ipc_fuzzer_mut.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/scripts/utils.py
diff --git a/tools/ipc_fuzzer/scripts/utils.py b/tools/ipc_fuzzer/scripts/utils.py
index 3c7e1498f5138c02f0244161558e5e8feba85a2a..0bdf885c0089d5b7b6773093de1903c770832698 100755
--- a/tools/ipc_fuzzer/scripts/utils.py
+++ b/tools/ipc_fuzzer/scripts/utils.py
@@ -33,10 +33,13 @@ def application_name_for_platform(application_name):
return application_name + '.exe'
return application_name
-def create_flags_file(ipcdump_testcase_path, ipc_replay_application_path):
+def create_flags_file(ipcdump_testcase_path):
"""Create a flags file to add launch prefix to application command line."""
random_launch_prefix = random.choice(LAUNCH_PREFIXES)
- file_content = '%s=%s' % (random_launch_prefix, ipc_replay_application_path)
+ application_name = application_name_for_platform(IPC_REPLAY_APPLICATION)
+ file_content = '%s=%%APP_DIR%%%s%s' % (random_launch_prefix,
+ os.path.sep,
+ application_name)
flags_file_path = ipcdump_testcase_path.replace(FUZZ_PREFIX, FLAGS_PREFIX)
file_handle = open(flags_file_path, 'w')
« no previous file with comments | « tools/ipc_fuzzer/scripts/ipc_fuzzer_mut.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698