зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1163020 - Fix --jitflags=none or no --jitflags in jit_test.py. r=terrence
This commit is contained in:
Родитель
f12185dda1
Коммит
bf7d481e9a
|
@ -285,7 +285,7 @@ def load_tests(options, requested_paths, excluded_paths):
|
|||
elif options.tbpl_debug:
|
||||
flags_list = get_jitflags('debug')
|
||||
else:
|
||||
flags_list = get_jitflags(options.jitflags)
|
||||
flags_list = get_jitflags(options.jitflags, none=None)
|
||||
|
||||
if flags_list:
|
||||
new_test_list = []
|
||||
|
|
|
@ -32,13 +32,17 @@ JITFLAGS = {
|
|||
['--ion-eager', '--ion-offthread-compile=off'], # implies --baseline-eager
|
||||
['--baseline-eager'],
|
||||
],
|
||||
'none': []
|
||||
'none': [
|
||||
[] # no flags, normal baseline and ion
|
||||
]
|
||||
}
|
||||
|
||||
def get_jitflags(variant):
|
||||
def get_jitflags(variant, **kwargs):
|
||||
if variant not in JITFLAGS:
|
||||
print('Invalid jitflag: "{}"'.format(variant))
|
||||
sys.exit(1)
|
||||
if variant == 'none' and 'none' in kwargs:
|
||||
return kwargs['none']
|
||||
return JITFLAGS[variant]
|
||||
|
||||
def do_run_cmd(cmd):
|
||||
|
|
Загрузка…
Ссылка в новой задаче