3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

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

View File

@ -1212,6 +1212,9 @@ def run_tests():
if not args.debug: if not args.debug:
sys.stdout = open(os.devnull, 'w') 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/src' % args.testhome
os.environ['PATH'] += ':%s/tools' % args.testhome os.environ['PATH'] += ':%s/tools' % args.testhome
os.environ['PATH'] += ':%s/client' % args.testhome os.environ['PATH'] += ':%s/client' % args.testhome