diff options
author | Jeremy Laine <jeremy.laine@m4x.org> | 2008-09-22 14:07:14 +0000 |
---|---|---|
committer | Jeremy Laine <jeremy.laine@m4x.org> | 2008-09-22 14:07:14 +0000 |
commit | b1851cda70581bbc0f4dd64fc253e69ee9141bdb (patch) | |
tree | e7ac5da1d7622c9dedfa683102a7d83605fc6ef3 /classes | |
parent | 5553eb15d63ea41aae25786c12913ccd1a0098b6 (diff) |
oestats-client.bbclass: add support for QA logs (see bug #4345)
Diffstat (limited to 'classes')
-rw-r--r-- | classes/oestats-client.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/oestats-client.bbclass b/classes/oestats-client.bbclass index 94fdbf41c4..6d348d3ded 100644 --- a/classes/oestats-client.bbclass +++ b/classes/oestats-client.bbclass @@ -108,6 +108,7 @@ def oestats_stop(server, d, failures): def oestats_task(server, d, task, status): import bb import glob + import os.path import time # retrieve build id @@ -130,6 +131,13 @@ def oestats_task(server, d, task, status): 'filename': 'log.txt', 'content': file(log).read(), 'content-type': 'text/plain'} + if task == 'do_package': + qalog = "%s/log.qa_package" % bb.data.getVar('T', d, True) + if os.path.exists(qalog): + files['qalog'] = { + 'filename': 'qalog.txt', + 'content': file(qalog).read(), + 'content-type': 'text/plain'} # prepare report vars = { |