perf-tool: Fix default value for --extra-filter

While it is theoretically fine to run --perf=hwtest without passing --hwtest,
the test will hang in this case because it fails to start gedit. Always append
Gedit to the default value for --extra-filter when running the "hwtest" test
to make it work fine without --hwtest.
This commit is contained in:
Yussuf Khalil 2018-04-29 18:03:40 +02:00 committed by Florian Müllner
parent 642107a28f
commit 2d6cf236c4

View File

@ -347,10 +347,10 @@ if options.perf == None:
options.perf = 'core' options.perf = 'core'
if options.extra_filter is None: if options.extra_filter is None:
if options.hwtest: options.extra_filter = []
options.extra_filter = ['Gedit']
else: if options.perf == 'hwtest':
options.extra_filter = [] options.extra_filter.append('Gedit')
if args: if args:
parser.print_usage() parser.print_usage()