scripts: segfault_test: Don't test harfbuzz if unnecessary
This commit is contained in:
parent
a3ff5f7b6e
commit
69d1d130ce
@ -68,42 +68,46 @@ def main():
|
|||||||
# pages which previously caused problems
|
# pages which previously caused problems
|
||||||
pages = [
|
pages = [
|
||||||
# ANGLE, https://bugreports.qt-project.org/browse/QTBUG-39723
|
# ANGLE, https://bugreports.qt-project.org/browse/QTBUG-39723
|
||||||
'http://www.binpress.com/',
|
('http://www.binpress.com/', False),
|
||||||
'http://david.li/flow/',
|
('http://david.li/flow/', False),
|
||||||
'https://imzdl.com/',
|
('https://imzdl.com/', False),
|
||||||
# not reproducable
|
# not reproducable
|
||||||
# https://bugreports.qt-project.org/browse/QTBUG-39847
|
# https://bugreports.qt-project.org/browse/QTBUG-39847
|
||||||
'http://www.20min.ch/',
|
('http://www.20min.ch/', True),
|
||||||
# HarfBuzz, https://bugreports.qt-project.org/browse/QTBUG-39278
|
# HarfBuzz, https://bugreports.qt-project.org/browse/QTBUG-39278
|
||||||
'http://www.the-compiler.org/',
|
('http://www.the-compiler.org/', True),
|
||||||
'http://phoronix.com',
|
('http://phoronix.com', True),
|
||||||
'http://twitter.com',
|
('http://twitter.com', True),
|
||||||
# HarfBuzz #2, https://bugreports.qt-project.org/browse/QTBUG-36099
|
# HarfBuzz #2, https://bugreports.qt-project.org/browse/QTBUG-36099
|
||||||
'http://lenta.ru/',
|
('http://lenta.ru/', True),
|
||||||
# Unknown, https://bugreports.qt-project.org/browse/QTBUG-41360
|
# Unknown, https://bugreports.qt-project.org/browse/QTBUG-41360
|
||||||
'http://salt.readthedocs.org/en/latest/topics/pillar/'
|
('http://salt.readthedocs.org/en/latest/topics/pillar/', True),
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
pages = sys.argv[1:]
|
pages = [(e, True) for e in sys.argv[1:]]
|
||||||
for page in pages:
|
for page, test_harfbuzz in pages:
|
||||||
print("{}==== {} ===={}".format(col.Style.BRIGHT, page,
|
print("{}==== {} ===={}".format(col.Style.BRIGHT, page,
|
||||||
col.Style.NORMAL))
|
col.Style.NORMAL))
|
||||||
print("With system harfbuzz:")
|
if test_harfbuzz:
|
||||||
|
print("With system harfbuzz:")
|
||||||
ret = subprocess.call([sys.executable, '-c', SCRIPT, page])
|
ret = subprocess.call([sys.executable, '-c', SCRIPT, page])
|
||||||
print_ret(ret)
|
print_ret(ret)
|
||||||
retvals.append(ret)
|
retvals.append(ret)
|
||||||
print("With QT_HARFBUZZ=old:")
|
if test_harfbuzz:
|
||||||
env = dict(os.environ)
|
print("With QT_HARFBUZZ=old:")
|
||||||
env['QT_HARFBUZZ'] = 'old'
|
env = dict(os.environ)
|
||||||
ret = subprocess.call([sys.executable, '-c', SCRIPT, page], env=env)
|
env['QT_HARFBUZZ'] = 'old'
|
||||||
print_ret(ret)
|
ret = subprocess.call([sys.executable, '-c', SCRIPT, page],
|
||||||
retvals.append(ret)
|
env=env)
|
||||||
print("With QT_HARFBUZZ=nev:")
|
print_ret(ret)
|
||||||
env = dict(os.environ)
|
retvals.append(ret)
|
||||||
env['QT_HARFBUZZ'] = 'new'
|
print("With QT_HARFBUZZ=new:")
|
||||||
ret = subprocess.call([sys.executable, '-c', SCRIPT, page], env=env)
|
env = dict(os.environ)
|
||||||
print_ret(ret)
|
env['QT_HARFBUZZ'] = 'new'
|
||||||
retvals.append(ret)
|
ret = subprocess.call([sys.executable, '-c', SCRIPT, page],
|
||||||
|
env=env)
|
||||||
|
print_ret(ret)
|
||||||
|
retvals.append(ret)
|
||||||
if all(r == 0 for r in retvals):
|
if all(r == 0 for r in retvals):
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user