fix btest harness bug, python += is not the same as = +

This commit is contained in:
Alon Zakai 2012-07-12 21:21:16 -07:00
Родитель 3b6025a2c4
Коммит 1b15a1c44b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -7849,7 +7849,7 @@ elif 'browser' in str(sys.argv):
expected = [str(i) for i in range(0, reference_slack+1)]
shutil.copyfile(path_from_root('tests', filename), os.path.join(self.get_dir(), filename))
self.reftest(path_from_root('tests', reference))
args += ['--pre-js', 'reftest.js']
args = args + ['--pre-js', 'reftest.js']
Popen(['python', EMCC, os.path.join(self.get_dir(), filename), '-o', 'test.html'] + args).communicate()
if type(expected) is str: expected = [expected]
self.run_browser('test.html', '.', ['/report_result?' + e for e in expected])