Add a method to the Host objects for logging the currently running
kernel, and a method for logging "informational" status logs that
update the kernel without requiring any real action to occur. This
logging will always occur at the start of a client job, for server-side
jobs it will still be opt-in only, since we don't have a clean place
to log it where we know we have access to a host object.
Risk: Medium
Visibility: Client-side jobs should always have a real kernel
associated with all logged tests, and server-side jobs have an easy
way to log the same thing.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2157 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/parsers/version_0_unittest.py b/tko/parsers/version_0_unittest.py
index 03c13b2..6ca7df8 100644
--- a/tko/parsers/version_0_unittest.py
+++ b/tko/parsers/version_0_unittest.py
@@ -17,6 +17,12 @@
self.assertEquals(line.status, None)
+ def test_fails_info(self):
+ self.assertRaises(AssertionError,
+ version_0.status_line, 0, "INFO", "----", "----",
+ "", {})
+
+
def test_handles_status(self):
for stat in self.statuses:
line = version_0.status_line(0, stat, "----", "test",