[Intel-gfx] [PATCH 20/23] framework: Dump the result of 'uname -a' in the report

Damien Lespiau damien.lespiau at intel.com
Fri Nov 15 17:33:37 CET 2013


Sent to the piglit ml:
  http://lists.freedesktop.org/archives/piglit/2013-November/008465.html

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 piglit/framework/core.py           | 3 +++
 piglit/framework/summary.py        | 1 +
 piglit/templates/testrun_info.mako | 6 ++++++
 3 files changed, 10 insertions(+)

diff --git a/piglit/framework/core.py b/piglit/framework/core.py
index e0fe46c..e0b49f8 100644
--- a/piglit/framework/core.py
+++ b/piglit/framework/core.py
@@ -293,11 +293,13 @@ class TestrunResult:
         self.serialized_keys = ['options',
                                 'name',
                                 'tests',
+                                'uname',
                                 'wglinfo',
                                 'glxinfo',
                                 'lspci',
                                 'time_elapsed']
         self.name = None
+        self.uname = None
         self.glxinfo = None
         self.lspci = None
         self.time_elapsed = None
@@ -432,6 +434,7 @@ class Environment:
         else:
             result['glxinfo'] = self.run('glxinfo')
         if system == 'Linux':
+            result['uname'] = self.run(['uname', '-a'])
             result['lspci'] = self.run('lspci')
         return result
 
diff --git a/piglit/framework/summary.py b/piglit/framework/summary.py
index a85353a..13596ea 100644
--- a/piglit/framework/summary.py
+++ b/piglit/framework/summary.py
@@ -458,6 +458,7 @@ class Summary:
                 out.write(testindex.render(name=each.name,
                                            time=humanize_time(each.time_elapsed),
                                            options=each.options,
+                                           uname=each.uname,
                                            glxinfo=each.glxinfo,
                                            lspci=each.lspci))
 
diff --git a/piglit/templates/testrun_info.mako b/piglit/templates/testrun_info.mako
index e6e00b3..6ff1f44 100644
--- a/piglit/templates/testrun_info.mako
+++ b/piglit/templates/testrun_info.mako
@@ -30,6 +30,12 @@
         <td>${options}</td>
       </tr>
       <tr>
+        <td>uname -a</td>
+        <td>
+          <pre>${uname}</pre>
+        </td>
+      </tr>
+      <tr>
         <td>lspci</td>
         <td>
           <pre>${lspci}</pre>
-- 
1.8.3.1




More information about the Intel-gfx mailing list