summaryrefslogtreecommitdiffstats
path: root/meta/classes/report-error.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-07-08 11:53:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-09 18:00:17 +0100
commit91c1574fbeaba25bbb19e8166cfc9cda93e64aaf (patch)
tree99cb061172ac58c7976012d1b47ba692c28daac5 /meta/classes/report-error.bbclass
parent72500107b2a0533bb18d4915e0954c1494a499bb (diff)
downloadpoky-91c1574fbeaba25bbb19e8166cfc9cda93e64aaf.tar.gz
report-error: expand all variables
BUILDNAME is now composed from ${DATE} and ${TIME} so needs to be expanded to useful. Whilst fixing this some other variables were explicitly not expanded for no clear reason, so expand those too. (From OE-Core rev: d45f818026429b70d90fb3ae8e017db6516dca44) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/report-error.bbclass')
-rw-r--r--meta/classes/report-error.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass
index 11eee9bdc5..cabd98cc32 100644
--- a/meta/classes/report-error.bbclass
+++ b/meta/classes/report-error.bbclass
@@ -32,11 +32,11 @@ python errorreport_handler () {
32 if isinstance(e, bb.event.BuildStarted): 32 if isinstance(e, bb.event.BuildStarted):
33 bb.utils.mkdirhier(logpath) 33 bb.utils.mkdirhier(logpath)
34 data = {} 34 data = {}
35 machine = e.data.getVar("MACHINE", False) 35 machine = e.data.getVar("MACHINE", True)
36 data['machine'] = machine 36 data['machine'] = machine
37 data['build_sys'] = e.data.getVar("BUILD_SYS", True) 37 data['build_sys'] = e.data.getVar("BUILD_SYS", True)
38 data['nativelsb'] = e.data.getVar("NATIVELSBSTRING", False) 38 data['nativelsb'] = e.data.getVar("NATIVELSBSTRING", True)
39 data['distro'] = e.data.getVar("DISTRO", False) 39 data['distro'] = e.data.getVar("DISTRO", True)
40 data['target_sys'] = e.data.getVar("TARGET_SYS", True) 40 data['target_sys'] = e.data.getVar("TARGET_SYS", True)
41 data['failures'] = [] 41 data['failures'] = []
42 data['component'] = e.getPkgs()[0] 42 data['component'] = e.getPkgs()[0]
@@ -73,7 +73,7 @@ python errorreport_handler () {
73 bb.utils.unlockfile(lock) 73 bb.utils.unlockfile(lock)
74 failures = jsondata['failures'] 74 failures = jsondata['failures']
75 if(len(failures) > 0): 75 if(len(failures) > 0):
76 filename = "error_report_" + e.data.getVar("BUILDNAME", False)+".txt" 76 filename = "error_report_" + e.data.getVar("BUILDNAME", True)+".txt"
77 datafile = errorreport_savedata(e, jsondata, filename) 77 datafile = errorreport_savedata(e, jsondata, filename)
78 bb.note("The errors for this build are stored in %s\nYou can send the errors to a reports server by running:\n send-error-report %s [-s server]" % (datafile, datafile)) 78 bb.note("The errors for this build are stored in %s\nYou can send the errors to a reports server by running:\n send-error-report %s [-s server]" % (datafile, datafile))
79 bb.note("The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.") 79 bb.note("The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.")