Escape quotation marks in html.

pull/3974/head
Adele Zhou 9 years ago
parent d5fffa5850
commit 4671096736
  1. 3
      tools/run_tests/run_interop_tests.py
  2. 6
      tools/run_tests/run_tests.py

@ -485,7 +485,8 @@ def fill_one_test_result(shortname, resultset, html_str):
if result.returncode > 0:
tooltip = 'returncode: %d ' % result.returncode
if result.message:
tooltip = '%smessage: %s' % (tooltip, result.message)
escaped_msg = result.message.replace('"', '"')
tooltip = '%smessage: %s' % (tooltip, escaped_msg)
if result.state == 'FAILED':
html_str = '%s<td bgcolor=\"red\">' % html_str
if tooltip:

@ -908,9 +908,9 @@ if forever:
have_files_changed = lambda: dw.most_recent_change() != initial_time
previous_success = success
success = _build_and_run(check_cancelled=have_files_changed,
newline_on_success=False,
travis=args.travis,
cache=test_cache) == 0
newline_on_success=False,
travis=args.travis,
cache=test_cache) == 0
if not previous_success and success:
jobset.message('SUCCESS',
'All tests are now passing properly',

Loading…
Cancel
Save