| Summary: | ptest automated testing says passed when it failed | ||
|---|---|---|---|
| Product: | [QA/Testing] Runtime Testing | Reporter: | Ross Burton <ross.burton> |
| Component: | general | Assignee: | Lucian Musat <georgex.l.musat> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | alexandru.c.georgescu, georgex.l.musat |
| Version: | 1.7 | ||
| Target Milestone: | 1.8 M2 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Ross Burton
2014-10-31 20:21:24 UTC
During an *in progress* ptest run: root@qemux86-64:~# grep FAIL: /tmp/ptest.log | wc -l 399 An hour later, it finished: core-image-sato - Ran 24 tests in 5099.061s core-image-sato - OK - All required tests passed (skipped=1) Lies! :) Hello Ross, To do a ptest succesfully I build a ptest capable image using these configurations in local.conf: IMAGE_FEATURES_append = " ptest-pkgs" IMAGE_INSTALL_append = " ptest-runner" INHERIT += "buildhistory" INHERIT += "testimage" TEST_SUITES = " _ptest" Buildhistory is mandatory and that test should fail without it. I also see that you skipped ptest-runner image install. But you are right, it seems that a check to see if ptest-runner actually ran succesfully is missing. Also I need to underline here that is a difference between the ptest unittest running succesfully and the actual ptest output, that needs to be analyzed separately. Ex: tmp/work/genericx86_64-poky-linux/core-image-sato-sdk/1.0-r0/testimage/ptest-20141106084139.log That is then parsed into: tmp/work/genericx86_64-poky-linux/core-image-sato-sdk/1.0-r0/core-image-sato-sdk-1.0/results$ ls fail.acl fail.attr fail.perl fail.quilt For example we could make the unittest fail every time a "fail.*" file is resulted but I don't think that the test will ever pass with this condition. Lucian, is "oeqa/ptest: Fixed complementary package install detection and added ptest-runner exit code check" the fix for this? (oe-core b214c7b901fe0fad081d7a97f9e91cc218c66bd6) Yes, it is. |