| Summary: | Additional layer extending test breaks bitbake -c testimage | ||
|---|---|---|---|
| Product: | [QA/Testing] Runtime Testing | Reporter: | Paul Eggleton <bluelightning> |
| Component: | general | Assignee: | Apoorv <apoorv.sangal> |
| Status: | RESOLVED MOVED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | ee.peng.yeoh, ross.burton |
| Version: | 5.99 | ||
| Target Milestone: | 2.7 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Paul Eggleton
2018-07-03 03:19:40 UTC
this is due to changes made in commit id d9b3ee8b38f877c1723e48f1aa311c28102786fb. This would need further analaysis. QemuTarget is used to start a qemu instance (as it's currently done in testimage.bbclass).
SimpleRemoteTarget is meant for a remote machine (by setting TEST_TARGET_IP) that's already up and running with network and ssh. It allows to select one implementation or another by setting TEST_TARGET (currently to: "qemu" and "simpleremote").
Earlier,in poky (old version), when input (TAEST_TARGET = "simpleremote") is provided through local.conf file, then corresponding controller class implemention "SimpleRemoteTarget" got called.
The "SimpleRemoteTarget" is class implemention for input "simpleremote".
poky commit id: 17e3dc2cb5e7c060647a29a508d43a622ba53b80
+def get_target_controller(d):
+ if d.getVar("TEST_TARGET", True) == "qemu":
+ return QemuTarget(d)
+ elif d.getVar("TEST_TARGET", True) == "simpleremote":
+ return SimpleRemoteTarget(d)
+ else:
+ bb.fatal("Please set a valid TEST_TARGET")
Now, in latest poky release, this class "SimpleRemoteTarget" implemention has been replaced by class "OESSHTarget" (meta/lib/oeqa/core/target/ssh.py:class OESSHTarget(OETarget):)
file name : poky/meta/lib/oeqa/runtime/context.py
if target_type == 'simpleremote':
target = OESSHTarget(logger, target_ip, server_ip, **kwargs)
elif target_type == 'qemu':
target = OEQemuTarget(logger, target_ip, server_ip, **kwargs)
else:
This class "SimpleRemoteTarget" is present in file ./meta/lib/oeqa/targetcontrol.py but its instance/object is not being created anywhere.
Based on the analysis, class "SimpleRemoteTarget" is obsolete now. So, we need to update the document.
apologies..please discard my comment2, it was for bug id 12842. I believe the problem here is that meta-security-smack ships a __init__.py in its oeqa tree: https://github.com/intel/meta-intel-iot-security/blob/master/meta-security-smack/lib/oeqa/runtime/__init__.py This file should be deleted. Moved to https://github.com/intel/meta-intel-iot-security/pull/142. |