When you try to do image testing on poky master the parselogs_rpi test cannot be compiled. That prevents test execution even if the test is removed by TEST_SUITES:remove:rpi = "parselogs_rpi" in local.conf.
Exception: ImportError: Failed to import test module: parselogs_rpi
Traceback (most recent call last):
File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "test/sources/meta-raspberrypi/lib/oeqa/runtime/cases/parselogs_rpi.py", line 6, in <module>
ignore_errors['raspberrypi4'] = rpi_errors + common_errors
NameError: name 'common_errors' is not defined
Describe the results you expected:
core-image-minimal - OK - All required tests passed (successes=2, skipped=71, failures=0, errors=0)
Additional information you deem important (e.g. issue happens only occasionally):
It seams to happen while bitbake is parsing all test cases and it is not possible to deactivate this parsing for certain test cases.
Maybe the file can be deleted (as it does nothing) and the parselogs replacement in layer.conf can be removed. Or if you whant to keep the stub for adding errors to ignore the file can be changed to:
from oeqa.runtime.cases.parselogs import ParseLogsTest
class ParseLogsTestRpi(ParseLogsTest):
# A list of error messages that should be ignored
ignore_errors = []
Description
When you try to do image testing on poky master the
parselogs_rpi
test cannot be compiled. That prevents test execution even if the test is removed byTEST_SUITES:remove:rpi = "parselogs_rpi"
in local.conf.Steps to reproduce the issue:
Maybe you have to setup qemu requisites according to: Enabling Runtime Tests on QEMU.
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
It seams to happen while bitbake is parsing all test cases and it is not possible to deactivate this parsing for certain test cases.
Additional details (revisions used, host distro, etc.):
none
Comments:
Maybe the file can be deleted (as it does nothing) and the parselogs replacement in layer.conf can be removed. Or if you whant to keep the stub for adding errors to ignore the file can be changed to: