[OE-core] [PATCH v2] oeqa/runtime/stap.py: add runtime test for systemtap
Burton, Ross
ross.burton at intel.com
Fri Apr 13 13:23:03 UTC 2018
On 3 April 2018 at 16:25, Victor Kamensky <kamensky at cisco.com> wrote:
> + @OETestID(1652)
> + @skipIfNotFeature('tools-profile',
> + 'Test requires tools-profile to be in IMAGE_FEATURES')
> + @OETestDepends(['kernelmodule.KernelModuleTest.test_kernel_module'])
> + def test_stap(self):
Instead of skipIfNotFeature use OETestDepends(systemtap), as platforms
which don't support systemtap can still have tools-profile enabled
(such as musl systems).
Then please add stap to the default cases in testimage.bbclass for the
sdk images.
Also shouldn't the test be looking at the output to check that 'hello
world' was displayed? Otherwise stap might have done exit(0) but the
script didn't actually run.
Ross
More information about the Openembedded-core
mailing list