]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/systemd: get runtest target boot time and log
authorBenjamin Esquivel <benjamin.esquivel@linux.intel.com>
Thu, 3 Dec 2015 22:02:27 +0000 (16:02 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Dec 2015 23:31:40 +0000 (23:31 +0000)
commit59c6c13a8fa1bfc8e0615463e00ccdef04a87a47
treefffddf884a4d49690d0ef58ebee6f603d76d6a20
parentb411fec74f39d1efa7276046a32d6048b35dd199
oeqa/systemd: get runtest target boot time and log

oeqa.runtime.systemd.SystemdJournalTests.test_systemd_boot_time
this test will query the target boot time from journactl and will
print it to the output, if the time is obtained, the test passes

it then compares the boot time against the default systemd's
timeout TimeoutStartSec and if the boot time is greater than the
it will print it too

this test prints the startup time in the test log like:
...
test_systemd_boot_time (oeqa.runtime.systemd.SystemdJournalTests) ...
Startup finished in 6.922s (kernel) + 52.089s (userspace) = 59.011s.

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/runtime/systemd.py