|
|
(6 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| == Will's notes (to be integrated into main page) ==
| | |
| === Test Results ===
| |
| The result of the test is the exit code of the command. Usually retrieved like so:
| |
| <pre>self.results = utils.system_output(cmd, retain_output=True)</pre>
| |
| Further test-level info can be returned by using <code>test.write_test_keyval(dict)</code>:
| |
| <pre>
| |
| extrainfo = dict()
| |
| for line in self.results.stdout:
| |
| if line.startswith("kernel version "):
| |
| extrainfo['kernelver'] = line.split()[3]
| |
| ...
| |
| self.write_test_keyval(extrainfo)
| |
| </pre>
| |
| * For per-iteration data (performance numbers, etc) there are three methods:
| |
| ** Just attr: <code>test.write_attr_keyval(attr_dict)</code>
| |
| ** Just perf: <code>test.write_perf_keyval(perf_dict)</code>
| |
| ** Both: <code>test.write_iteration_keyval(attr_dict, perf_dict)</code>
| |