[sanitizer] Escape quotes in tests to fix android bot after D88361

This commit is contained in:
Vitaly Buka 2020-10-13 18:08:19 -07:00
parent f9586a3b3c
commit bcdd4359e1
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ def build_env():
args.append('LD_LIBRARY_PATH=%s' % (ANDROID_TMPDIR,))
for (key, value) in os.environ.items():
if key in ['ASAN_ACTIVATION_OPTIONS', 'SCUDO_OPTIONS'] or key.endswith('SAN_OPTIONS'):
args.append('%s="%s"' % (key, value))
args.append('%s="%s"' % (key, value.replace('"', '\\"')))
return ' '.join(args)
is_64bit = (subprocess.check_output(['file', sys.argv[0] + '.real']).find('64-bit') != -1)