commit | 73c35fd5388641ff733ff8b8fc4e9f3347bbff79 | [log] [tgz] |
---|---|---|
author | Yi-yo Chiang <yochiang@google.com> | Tue Mar 22 08:38:16 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Mar 22 08:38:16 2022 +0000 |
tree | 5107553c1a6503d72986b2233ce67d552129d1a0 | |
parent | e8738621cdfa35697afa5d1844b027decdcd713d [diff] | |
parent | 5608c3fde7ac3afdadd946ad5eb23dc9f40baa19 [diff] |
gki: Use shlex.split() to split command line argument strings am: d1d48f1edc am: 5ea2131098 am: 2dae9f75b8 am: 5608c3fde7 Original change: https://android-review.googlesource.com/c/platform/system/tools/mkbootimg/+/2035983 Change-Id: I9d5f2c43f334bb561064cbc9bca779794f3cd6bf
diff --git a/gki/generate_gki_certificate.py b/gki/generate_gki_certificate.py index 0765c08..2797cca 100755 --- a/gki/generate_gki_certificate.py +++ b/gki/generate_gki_certificate.py
@@ -18,6 +18,7 @@ """Generate a Generic Boot Image certificate suitable for VTS verification.""" from argparse import ArgumentParser +import shlex import subprocess @@ -73,7 +74,7 @@ additional_avb_args = [] for a in args.additional_avb_args: - additional_avb_args.extend(a.split()) + additional_avb_args.extend(shlex.split(a)) args.additional_avb_args = additional_avb_args return args