[sanitizer] Escape quotes in tests to fix android bot after D88361
authorVitaly Buka <vitalybuka@google.com>
Wed, 14 Oct 2020 01:08:19 +0000 (18:08 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 14 Oct 2020 01:09:38 +0000 (18:09 -0700)
compiler-rt/test/sanitizer_common/android_commands/android_run.py

index 41a587c..8f2e401 100755 (executable)
@@ -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)