As discussed on IRC, we want something like this for 2:

>>> print(json.dumps({'kernel_version': '1.2', 'test_kernel_versions': 
>>> [('test2', 'reboot_to_backport', '1.3~utopic')]}, indent=2))
{
  "kernel_version": "1.2",
  "test_kernel_versions": [
    [
      "test2",
      "reboot_to_backport",
      "1.3~utopic"
    ]
  ]
}

kernel_version is the version right after the initial testbed setup
/dist-upgrade/reboot. Any test which triggers a reboot which ends up in
a kernel != kernel_version will get an entry in that
test_kernel_versions list. Any test/reboot which is not there can be
assumed to use kernel_version. IOW, for pretty much all expected cases
test_kernel_versions should be completely absent.

We use json instead of yaml as the latter requires an external Python
module.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1491865

Title:
  report and record the actual booted kernel with test results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1491865/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to