Skip to content

Commit

Permalink
Bug 408383 - vista losing all/part of the tp results for each talos r…
Browse files Browse the repository at this point in the history
…un. a=anodelman r=rcampbell
  • Loading branch information
Unknown committed Dec 14, 2007
1 parent f9ff548 commit fedc35a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 3 additions & 2 deletions testing/performance/talos/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ def send_to_graph(results_server, results_link, title, date, browser_config, res
links = ''

for res in results:
filename = tempfile.mktemp()
tmpf = open(filename, "w")
browser_dump, counter_dump = results[res]
utils.debug("Working with test: " + res)
utils.debug("Sending results: " + " ".join(browser_dump))
filename = tempfile.mktemp()
tmpf = open(filename, "w")
if res in ('ts', 'twinopen'):
Expand Down Expand Up @@ -305,6 +305,7 @@ def test_file(filename):
utils.stamped_msg("Failed " + test, "Stopped")
print 'FAIL: failure to complete test: ' + test
sys.exit(0)
utils.debug("Received test results: " + " ".join(browser_dump))
results[test] = [browser_dump, counter_dump]
utils.stamped_msg("Completed test " + test, "Stopped")
utils.stamped_msg(title, "Stopped")
Expand Down
12 changes: 8 additions & 4 deletions testing/performance/talos/ttest.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,26 +170,29 @@ def runTest(browser_config, test_config):
# Check to see if page load times were outputted
(bytes, current_output) = ffprocess.NonBlockingReadProcessOutput(handle)
output += current_output
match = RESULTS_GENERIC.search(current_output)
if match:
if match.group(1):
utils.noisy(match.group(1))
match = RESULTS_REGEX.search(output)
if match:
browser_results += match.group(1)
utils.debug("Matched basic results: " + browser_results)
res = 1
break
#TODO: this a stop gap until all of the tests start outputting the same format
match = RESULTS_TP_REGEX.search(output)
if match:
browser_results += match.group(1)
utils.debug("Matched tp results: " + browser_results)
res = 1
break
match = RESULTS_REGEX_FAIL.search(output)
if match:
browser_results += match.group(1)
utils.debug("Matched fail results: " + browser_results)
print "FAIL: " + match.group(1)
break
match = RESULTS_GENERIC.search(current_output)
if match:
if match.group(1) != '':
utils.noisy(match.group(1))

#ensure that the browser is still running
#check at intervals of 60 - this is just to cut down on load
Expand All @@ -210,6 +213,7 @@ def runTest(browser_config, test_config):
#stop the counter manager since this test is complete
cm.stopMonitor()

utils.debug("Completed test with: " + browser_results)
#kill any remaining firefox processes
ffprocess.TerminateAllProcesses("firefox")
all_browser_results.append(browser_results)
Expand Down

0 comments on commit fedc35a

Please sign in to comment.