Bug 11933

Summary: oe-selftest: unset SANITY_TESTED_DISTROS automatically when oe-selftest is launched
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Rebecca Chang <rebecca.swee.fun.chang>
Component: Scripts and ToolsAssignee: Unassigned <unassigned>
Status: IN PROGRESS IMPLEMENTATION --- QA Contact:
Severity: normal    
Priority: Medium+ CC: chris.laplante, francisco.j.pedraza.gonzalez, randy.macleod, ross.burton, sgw, srikanthx.x.bheemanadhuni, tim.orling
Version: unspecified   
Target Milestone: 6.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on: 11429    
Bug Blocks:    
Attachments:
Description Flags
Automated to unset SANITY_TESTED_DISTORS none

Description Rebecca Chang 2017-08-15 05:30:24 UTC
In current environment, we need to manually unset SANITY_TESTED_DISTROS whenever we need to run oe-selftest. The idea here is to make it part of oe-selftest execution to unset it automatically without additional editing by users.
Comment 1 Jose Perez C 2017-08-17 14:55:25 UTC
There is a work on Bug 11401 with a patch directly setting this to local.conf but. that could be applied when Bug gets resolved 11429
Comment 2 Juan Manuel Cruz Alcaraz 2017-08-29 15:34:28 UTC
*** Bug 11401 has been marked as a duplicate of this bug. ***
Comment 3 Srikanth 2018-11-13 10:07:34 UTC
Created attachment 4392 [details]
Automated to unset SANITY_TESTED_DISTORS
Comment 4 Srikanth 2018-11-14 01:00:36 UTC
Issue solved by unset the SANITY_TESTED_DISTROS in the function  OESelftestTestContextExecutor() file b/meta/lib/oeqa/selftest/context.py

And added function remove_variables() which is called in 
final:
     self.remove_variables()
the function will comment the the unset SANITY_TESTED_DISTROS in local.conf

Source from the below patch 
https://hsdes.intel.com/appstore/article/#/1506456121

I am attaching my patch
Comment 5 Srikanth 2018-11-14 01:02:02 UTC
Issue solved by unset the SANITY_TESTED_DISTROS in the function  OESelftestTestContextExecutor() file b/meta/lib/oeqa/selftest/context.py

And added function remove_variables() which is called in 
final:
     self.remove_variables()
the function will comment the the unset SANITY_TESTED_DISTROS in local.conf

Source from the below patch 
https://hsdes.intel.com/appstore/article/#/1506456121

I am attaching my patch
Comment 6 Ross Burton 2018-11-14 12:21:10 UTC
Patches go the openembedded-core@lists.openembedded.org mailing list please, not bugzilla.
Comment 7 Srikanth 2018-11-23 01:40:06 UTC
please ignore the comment 4 and comment 5

Issue solved by unset the SANITY_TESTED_DISTROS in the function  OESelftestTestContextExecutor() file b/meta/lib/oeqa/selftest/context.py

And added function remove_variables() which is called in 
final:
     self.remove_variables()
the function will comment the the unset SANITY_TESTED_DISTROS in local.conf

Source from the below patch 
https://patchwork.openembedded.org/patch/139410/
Comment 8 Srikanth 2018-11-28 03:13:01 UTC
@Ross, as suggested, patch has been emailed to openembedded-core@lists.openembedded.org mailing list on 23 Nov'2018
Comment 9 yeoh ee peng 2018-12-28 05:56:48 UTC
Please add the link to the patch.
Comment 10 Randy MacLeod 2023-10-24 14:24:28 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 12 Randy MacLeod 2026-10-15 15:14:13 UTC
FORCE_VARIABLE is not RP's favourite but used more and more recently...