]> code.ossystems Code Review - openembedded-core.git/commit
dump: Created new classes for dump host and target
authorMariano Lopez <mariano.lopez@linux.intel.com>
Tue, 25 Aug 2015 00:04:02 +0000 (19:04 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Aug 2015 11:34:40 +0000 (12:34 +0100)
commitad10af6be343b5425fde43055263b0744c161cb3
tree0b1dd2981e31d5704e8fb2d3abefa5124bf4dba0
parent6ca7f5c0d0f024ae5d21368188e3428534cab2a4
dump: Created new classes for dump host and target

It makes sense to separate the dump commands from the
oeRuntimeTest class, this way it can be used in all
the test context.

These are the changes included in this patch:

    - Created classes: BaseDumper, HostDumper, TargetDumper
    - Create an instance of HostDumper in imagetest.bbclass
      and add it to TestContext class, this way any class
      that have access to the TestContext would be able
      to dump logs from the host
    - Create an instance of TargetDumper in QemuTarget
      class after get the runner, this way it is
      accessible during the tests.

[YOCTO #8118]

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
meta/classes/testimage.bbclass
meta/lib/oeqa/oetest.py
meta/lib/oeqa/targetcontrol.py
meta/lib/oeqa/utils/dump.py [new file with mode: 0644]