Bug 12345

Summary: qemuarm (runqemu): 'deploy_dir_image' is not defined
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Juro Bystricky <juro.bystricky>
Component: Scripts and ToolsAssignee: Stephano Cetola <stephano>
Status: RESOLVED OBSOLETE QA Contact:
Severity: normal    
Priority: Undecided CC: ross.burton
Version: 2.5   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Juro Bystricky 2017-11-14 17:26:45 UTC
do_testimage fails with:

Build Configuration:
BB_VERSION           = "1.37.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "qemuarm"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4"
TUNE_FEATURES        = "arm armv5 thumb dsp"
TARGET_FPU           = "soft"
meta                 
meta-poky            
meta-yocto-bsp       = "heads/ross/mut:56d6cfae8b0c4707e6bb58c89ac782c57c368a86"


| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb:do_populate_sysroot', 'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/qemu/qemu_2.10.1.bb:do_populate_sysroot', 'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-extended/cpio/cpio_2.12.bb:do_populate_sysroot', 'virtual:native:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['cpio-native']
| NOTE: Skipping as already exists in sysroot: ['qemu-helper-native', 'qemu-native', 'createrepo-c-native', 'pixman-native', 'zlib-native', 'alsa-lib-native', 'glib-2.0-native', 'libsdl-native', 'pkgconfig-native', 'gnu-config-native', 'autoconf-native', 'quilt-native', 'automake-native', 'dtc-native', 'libtool-native', 'curl-native', 'libxml2-native', 'openssl-native', 'expat-native', 'python3-native', 'cmake-native', 'rpm-native', 'sqlite3-native', 'xz-native', 'file-native', 'gettext-minimal-native', 'texinfo-dummy-native', 'util-macros-native', 'libpng-native', 'libffi-native', 'libpcre-native', 'util-linux-native', 'gettext-native', 'gtk-doc-native', 'libxrender-native', 'libxext-native', 'libxrandr-native', 'libx11-native', 'm4-native', 'bison-native', 'flex-native', 'cryptodev-linux-native', 'makedepend-native', 'pigz-native', 'readline-native', 'bzip2-native', 'db-native', 'popt-native', 'dbus-native', 'libarchive-native', 'nss-native', 'elfutils-native', 'ncurses-native', 'lzo-native', 'xproto-native', 'renderproto-native', 'xextproto-native', 'randrproto-native', 'xtrans-native', 'libxcb-native', 'inputproto-native', 'kbproto-native', 'e2fsprogs-native', 'nspr-native', 'libpthread-stubs-native', 'libxau-native', 'xcb-proto-native', 'libxdmcp-native', 'attr-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function do_testimage
| DEBUG: Not using kvm for runqemu
| DEBUG: Created listening socket for qemu serial console on: 127.0.0.1:46333
| DEBUG: Created listening socket for qemu serial console on: 127.0.0.1:48053
| DEBUG: launchcmd=runqemu snapshot   qemuarm /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/build/tmp/deploy/images/qemuarm/core-image-minimal-qemuarm.ext4 tcpserial=48053 bootparams="console=tty1 console=ttyS0,115200n8 printk.time=1" qemuparams="-serial tcp:127.0.0.1:46333 -pidfile pidfile_44419"
| DEBUG: runqemu started, pid is 44436
| DEBUG: waiting at most 120 seconds for qemu pid
| DEBUG: runqemu exited with code 1
| DEBUG: Output from runqemu:
| Traceback (most recent call last):
|   File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/scripts/runqemu", line 1277, in main
|     config.check_and_set()
|   File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/scripts/runqemu", line 692, in check_and_set
|     self.check_dtb()
|   File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm/build/scripts/runqemu", line 624, in check_dtb
|     cmd_match = "%s/%s" % (deploy_dir_image, dtb)
| NameError: name 'deploy_dir_image' is not defined
| Cleanup
| 
| DEBUG: Sending SIGTERM to runqemu
| WARNING: Qemu ended unexpectedly, dump data from host is in /tmp/oe-saved-tests/201711132314_qemu
| DEBUG: Python function do_testimage finished
| ERROR: Function failed: do_testimage

full log (non-persistent):
https://autobuilder.yocto.io/builders/nightly-arm/builds/646/steps/Running%20Sanity%20Tests/logs/stdio
Comment 1 Ross Burton 2017-11-14 20:15:27 UTC
Bug in a runqemu patch, now dropped.