Escape the builder name when archiving the layout test results.
Failing to do so leads to incorrect URLs being linked to in the test results :). TBR=ilevy@chromium.org BUG=293928 Review URL: https://codereview.chromium.org/23496069 git-svn-id: http://src.chromium.org/svn/trunk/src/build@223803 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
0cadafcd6a
Коммит
b234618b7d
|
@ -9,6 +9,7 @@ import hashlib
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -254,11 +255,10 @@ def RunWebkitLayoutTests(options):
|
||||||
builder_name = options.build_properties.get('buildername', '')
|
builder_name = options.build_properties.get('buildername', '')
|
||||||
build_number = str(options.build_properties.get('buildnumber', ''))
|
build_number = str(options.build_properties.get('buildnumber', ''))
|
||||||
bb_annotations.PrintLink('results',
|
bb_annotations.PrintLink('results',
|
||||||
'%s/%s/%s/layout-test-results/results.html' % (base, builder_name,
|
'%s/%s/%s/layout-test-results/results.html' % (
|
||||||
build_number))
|
base, EscapeBuilderName(builder_name), build_number))
|
||||||
bb_annotations.PrintLink('(zip)',
|
bb_annotations.PrintLink('(zip)', '%s/%s/%s/layout-test-results.zip' % (
|
||||||
'%s/%s/%s/layout-test-results.zip' % (base, builder_name,
|
base, EscapeBuilderName(builder_name), build_number))
|
||||||
build_number))
|
|
||||||
gs_bucket = 'gs://chromium-layout-test-archives'
|
gs_bucket = 'gs://chromium-layout-test-archives'
|
||||||
RunCmd([os.path.join(SLAVE_SCRIPTS_DIR, 'chromium',
|
RunCmd([os.path.join(SLAVE_SCRIPTS_DIR, 'chromium',
|
||||||
'archive_layout_test_results.py'),
|
'archive_layout_test_results.py'),
|
||||||
|
@ -269,6 +269,10 @@ def RunWebkitLayoutTests(options):
|
||||||
'--gs-bucket', gs_bucket])
|
'--gs-bucket', gs_bucket])
|
||||||
|
|
||||||
|
|
||||||
|
def EscapeBuilderName(builder_name):
|
||||||
|
return re.sub('[ ()]', '_', builder_name)
|
||||||
|
|
||||||
|
|
||||||
def SpawnLogcatMonitor():
|
def SpawnLogcatMonitor():
|
||||||
shutil.rmtree(LOGCAT_DIR, ignore_errors=True)
|
shutil.rmtree(LOGCAT_DIR, ignore_errors=True)
|
||||||
bb_utils.SpawnCmd([
|
bb_utils.SpawnCmd([
|
||||||
|
|
Загрузка…
Ссылка в новой задаче