From e8c8d88b8cf821c4bd7e12bed5f1344c75f4acfb Mon Sep 17 00:00:00 2001 From: lishutong Date: Thu, 19 Aug 2021 05:34:04 +0000 Subject: [PATCH] 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 --- tools/otagui/ota_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/otagui/ota_interface.py b/tools/otagui/ota_interface.py index a05a0e2c9..eba960939 100644 --- a/tools/otagui/ota_interface.py +++ b/tools/otagui/ota_interface.py @@ -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')