Bug 11401

Summary: oe-selftest failed SANITY_TESTED_DISTROS asked to be unset
Product: [QA/Testing] Runtime Testing Reporter: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Component: generalAssignee: Jose Perez C <jose.perez.carranza>
Status: RESOLVED DUPLICATE QA Contact: oscar lopez arandas <oscarx.lopez.arandas>
Severity: normal    
Priority: Medium CC: benjamin.esquivel, jose.perez.carranza, juan.m.cruz.alcaraz, meta.mr.watcher, meta.watcher, ross.burton
Version: 2.3   
Target Milestone: 2.4   
Hardware: x86   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Francisco Pedraza 2017-04-21 17:55:53 UTC
After trying to run oe-selftest the following error message was displayed: "2017-04-21 09:51:06,597 - selftest - ERROR - Please unset SANITY_TESTED_DISTROS in order to run oe-selftest" Rep (3/3).

I added the var SANITY_TESTED_DISTROS = "" at conf/local.conf and after that I was able to run oe-selftest.

== Build details ==
+++++++++++++++++++++++++++++++++++++++++++++++++++
poky: 7a0e795373653886452a7a2992ced10080711c26
meta-qt4: e120a2193be3982d55741fb9e51472db6ab9a5cd
meta-qt3: f33b73a9563f2dfdfd0ee37b61d65d90197a456f

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "centos-7"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "2.3"
TUNE_FEATURES     = "m64 core2"
TARGET_FPU        = ""
meta              
meta-selftest     
meta-poky         
meta-yocto-bsp    
meta-selftest     = "HEAD:7a0e795373653886452a7a2992ced10080711c26"


+++++++++++++++++++++++++++++++++++++++++++++++++++

Steps to reproduce it
1. Clone poky
2. Source the environment
3. Add meta-selftest to conf/bblayers.conf
4. Run oe-selftest, for example eSDK
$  oe-selftest -r eSDK.oeSDKExtSelfTest.test_image_generation_binary_feeds  eSDK.oeSDKExtSelfTest.test_install_libraries_headers


Expected results
oe-selftest should run successfully
Actual results
oe-selftest failed getting the following error message: "ERROR - Please unset SANITY_TESTED_DISTROS in order to run oe-selftest"
Comment 1 Ross Burton 2017-04-24 10:41:30 UTC
Yes, as bug 11292 says leaving that set can cause errors.

You could argue that oe-selftest should be clearing this value instead of expecting the user to do it.  Patches welcome.
Comment 2 Jose Perez C 2017-04-24 14:35:02 UTC
Proposed patch on the list 

https://patchwork.openembedded.org/patch/139410/
Comment 3 Jose Perez C 2017-04-27 15:05:20 UTC
New proposal to do not write config files, Bug 11429 is filed to track the proposal, making this bug dependent of that.
Comment 4 Juan Manuel Cruz Alcaraz 2017-08-29 15:34:28 UTC
This is a duplication fro the bug 11933

*** This bug has been marked as a duplicate of bug 11933 ***