When trying to retest some smart tests they are failing because the artifacts are already present in image. A solution to avoid this failures could be to cleanup those artifacts (oeqa/runtime/rpm.py and oeqa/runtime/smart.py) before retesting smart. To reproduce this: 1. Prepare testing environment 2. Set TEST_SUITES = "smart rpm" launch testing: bitbake -c testimage core-image-sato-sdk (everything will be OK) and after, re-launch again tests.
Note that to reproduce this under qemu, you'd need to disable the copying of the image so that the same image gets reused multiple times. If you don't do that, a fresh copy of the image is used each time under qemu and the changes are lost. See my "snapshot" changes to runqemu for examples of how that can be turned on/off.
Getting this error (it was gotten by testing over physical hardware "beaglebone black") anybody knows If this is the error reported ? | ====================================================================== | FAIL: test_rpm_query_nonroot (oeqa.runtime.rpm.RpmInstallRemoveTest) | ---------------------------------------------------------------------- | Traceback (most recent call last): | File "/home/pianodaemon/GIT_REPOS/QA_POKY_QEMU_32_64/meta/lib/oeqa/utils/decorators.py", line 109, in wrapped_f | return func(*args, **kwargs) | File "/home/pianodaemon/GIT_REPOS/QA_POKY_QEMU_32_64/meta/lib/oeqa/utils/decorators.py", line 97, in wrapped_f | return f(*args, **kwargs) | File "/home/pianodaemon/GIT_REPOS/QA_POKY_QEMU_32_64/meta/lib/oeqa/runtime/rpm.py", line 55, in test_rpm_query_nonroot | self.assertTrue(status == 0, msg="Failed to create new user: " + output) | AssertionError: False is not true : Failed to create new user: useradd: user 'test1' already exists | | ---------------------------------------------------------------------- | Ran 52 tests in 1121.844s | | FAILED (failures=2) | DEBUG: Python function do_testimage finished | ERROR: Function failed: core-image-sato-sdk - FAILED - check the task log and the ssh log ERROR: Task (/home/pianodaemon/GIT_REPOS/QA_POKY_QEMU_32_64/meta/recipes-sato/images/core-image-sato-sdk.bb:do_testimage) failed with exit code '1' NOTE: Tasks Summary: Attempted 64 tasks of which 63 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/pianodaemon/GIT_REPOS/QA_POKY_QEMU_32_64/meta/recipes-sato/images/core-image-sato-sdk.bb:do_testimage Summary: There was 1 WARNING message shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Patch submitted at http://lists.openembedded.org/pipermail/openembedded-core/2016-September/126289.html
*** Bug 9776 has been marked as a duplicate of this bug. ***
*** Bug 8988 has been marked as a duplicate of this bug. ***
Patch V2 submitted at http://lists.openembedded.org/pipermail/openembedded-core/2016-September/126350.html