Bug 12330 - QemuTarget instance is getting invalid logger parameter
Summary: QemuTarget instance is getting invalid logger parameter
Status: RESOLVED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Jose Perez C
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-11-09 15:03 UTC by Leonardo Sandoval Gonzalez
Modified: 2017-11-09 15:11 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonardo Sandoval Gonzalez 2017-11-09 15:03:38 UTC
The python interpreter is complaining when creating an QemuTarget instance with the logger parameter. Logger should be a single item, not multiple.

------
2017-11-09 03:27:15,556 - oe-selftest - INFO - Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/decorator/__init__.py", line 32, in wrapped_f
    return func(*args, **kwargs)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/cases/devtool.py", line 1203, in test_devtool_deploy_target
    with runqemu(testimage) as qemu:
  File "/usr/lib64/python3.4/contextlib.py", line 59, in __enter__
    return next(self.gen)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/utils/commands.py", line 324, in runqemu
    qemu = oeqa.targetcontrol.QemuTarget(recipedata, image_fstype, logger=targetlogger)
TypeError: __init__() got multiple values for argument 'logger'
------

AB build info:

------
Build status: FAILURE Build worker for this Build: opensuse423.yocto.io
Complete logs for all build steps: https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/611
Build Reason: Triggerable(trigger_main-build_nowait)
Build Properties:
• Contents of bblayers.conf (Note. LCONF_VERSION will not show up correctly)
POKY_BBLAYERS_CONF_VERSION =
BBPATH = "${TOPDIR}"
BBFILES ?=""
BBLAYERS += " \
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta \
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta-poky \
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta-yocto-bsp \
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta-selftest \
"

• DEST : /srv/autobuilder/autobuilder.yoctoproject.org/pub/nightly/20171108-7
• DISTRO : poky
• Contents of auto.conf (local.conf for autobuilders)
INHERIT += "report-error"
DISTRO = "poky"
PACKAGE_CLASSES = "package_rpm"
BB_NUMBER_THREADS = "24"
PARALLEL_MAKE = "-j 28"
SDKMACHINE ?= "x86_64"
BB_TASK_NICE_LEVEL = "5"
BB_TASK_NICE_LEVEL_task-testimage = "0"
BB_TASK_IONICE_LEVEL = "2.7"
BB_TASK_IONICE_LEVEL_task-testimage = "2.1"
DL_DIR = "/srv/autobuilder/autobuilder.yoctoproject.org/current_sources"
SSTATE_DIR ?= "/srv/autobuilder/autobuilder.yoctoproject.org/pub/sstate/"
MACHINE = "qemux86-64"
PREMIRRORS = ""
BB_GENERATE_MIRROR_TARBALLS = "1"
ADTREPO = "http://adtrepo.yoctoproject.org//2.4"
QEMU_USE_KVM = "True"
SDK_EXT_TYPE = "minimal"
SDK_INCLUDE_TOOLCHAIN = "1"
SANITY_TESTED_DISTROS = ""
RPM_GPG_SIGN_CHUNK = "1"
-----
Comment 1 Richard Purdie 2017-11-09 15:11:29 UTC
This was a master-next build with a broken patch and was fixed before the patch merged into master.