diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2015-07-02 20:48:21 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2015-07-02 20:48:21 +0100 |
commit | abaa8456927092c909f1ee3bcbef17542d26247e (patch) | |
tree | f156abc898f20e539f2cd4401f6f0f9be639e579 /testmanager/buildtestresults/tasks.py | |
parent | 1ee075315d3980e7c8637380613578f3d2ef3f1f (diff) |
added support for test job status
When test suites come from the same job, the job status is aggregated
and displayed in the template
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'testmanager/buildtestresults/tasks.py')
-rw-r--r-- | testmanager/buildtestresults/tasks.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testmanager/buildtestresults/tasks.py b/testmanager/buildtestresults/tasks.py index bc5dd5c..8fe3925 100644 --- a/testmanager/buildtestresults/tasks.py +++ b/testmanager/buildtestresults/tasks.py @@ -39,6 +39,7 @@ def get_credentials(host): @celery_app.task(bind=True) def dig_build(self, builder, project, buildnumber=None, configuration=None): + print "start digging build for: %s %s %s %s" % (builder, project, buildnumber, configuration) try: builder_project_name = project.projectname tester_class_name = project.testrunnerclass @@ -90,6 +91,8 @@ def dig_build(self, builder, project, buildnumber=None, configuration=None): print builder.get_test_job_ids(build) for test_job_id in builder.get_test_job_ids(build): download_test_results.delay(dbbuild, project, test_job_id) + else: + print "Something wrong, build is empty" return True except Exception as e: print "Exception happened" @@ -144,6 +147,7 @@ def dig_test(self, tester, test_job_id, build, source): print "\t\tBoot %s: %s (%s)" % (boot_result['target'], boot_result['result'], boot_result['reason']) dbboot = BootResult( testjoburl = tester.get_job_url(test_job_id), + testjobstatus = tester.get_test_job_status(test_job_id), boot_result = translate_results(boot_result['result']), boot_attempts = boot_result['boot_attempts'], #boot_time = boot_result['boot_time'], @@ -175,6 +179,7 @@ def dig_test(self, tester, test_job_id, build, source): parameters = result['parameters'] dbtestsuite = TestSuite( testjoburl = tester.get_job_url(test_job_id), + testjobstatus = tester.get_test_job_status(test_job_id), source = source, version = version, repository = result['git-repo'], #TODO change to 'repository' |