Fix a bug that may cause the ota generation fail.

The extra space in args['extra'] may cause the ota generation fail.

Test: python test_ota_interface.py -v
Change-Id: Iac6d06a89c52ab7554e54c08e5e04496b3da730a
This commit is contained in:
lishutong
2021-08-19 05:34:04 +00:00
committed by Shutong Li
parent 52469f2093
commit e8c8d88b8c

View File

@@ -251,7 +251,7 @@ class ProcessesManagement:
args['extra'] = \
'--' + ' --'.join(args['extra_keys']) + ' ' + args['extra']
if args['extra']:
command += args['extra'].split(' ')
command += args['extra'].strip().split(' ')
command.append('-k')
command.append(
'build/make/target/product/security/testkey')