summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-01-03 16:33:54 +0000
committerGerrit Code Review <review@openstack.org>2017-01-03 16:33:54 +0000
commit8fd36b64c4ab05323d2572880607cbdc15d03880 (patch)
tree16b9077bf56124fc9bd5665ede1dc29af72bf6fe
parent4548b4114bfb492c1dd07aaaab71d35a2771063b (diff)
parent7f701e51eef9a837b6ab2c8f40596523e25c9580 (diff)
Merge "Switch to storing run wall time in runs database"
-rw-r--r--files/subunit-gearman-worker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/subunit-gearman-worker.py b/files/subunit-gearman-worker.py
index 60ff2ec..3c7001f 100644
--- a/files/subunit-gearman-worker.py
+++ b/files/subunit-gearman-worker.py
@@ -91,7 +91,8 @@ class SubunitRetriever(object):
91 logging.debug('Converting Subunit V2 stream: %s to SQL' % 91 logging.debug('Converting Subunit V2 stream: %s to SQL' %
92 subunit_v2) 92 subunit_v2)
93 stream = read_subunit.ReadSubunit(subunit_v2, 93 stream = read_subunit.ReadSubunit(subunit_v2,
94 targets=self.extra_targets) 94 targets=self.extra_targets,
95 use_wall_time=True)
95 results = stream.get_results() 96 results = stream.get_results()
96 start_time = sorted( 97 start_time = sorted(
97 [results[x]['start_time'] for x in results if x != 'run_time'])[0] 98 [results[x]['start_time'] for x in results if x != 'run_time'])[0]