test-runner: fix verbose arguments as single string

The verbose arguments come in from the QEMU command line as a
single string. This should have been split into an array immediately
but was not. This led to issues like hostapd debug being enabled
when "-v hostapd_cli" was passed in.
This commit is contained in:
James Prestwood 2021-01-26 09:46:54 -08:00 committed by Denis Kenzior
parent 5c95c5cc16
commit 296f1d0d1c
1 changed files with 3 additions and 0 deletions

View File

@ -1212,6 +1212,9 @@ def run_tests():
if not args.debug:
sys.stdout = open(os.devnull, 'w')
if args.verbose != []:
args.verbose = args.verbose.split(',')
os.environ['PATH'] = '%s/src' % args.testhome
os.environ['PATH'] += ':%s/tools' % args.testhome
os.environ['PATH'] += ':%s/client' % args.testhome