Wind River Support Network

HomeDefectsLIN1024-3534
Fixed

LIN1024-3534 : do_testimage failed when --all-layers is used and buildtools is used

Created: Aug 28, 2024    Updated: Oct 11, 2024
Resolved Date: Oct 11, 2024
Found In Version: 10.24.33.2
Severity: Standard
Applicable for: Wind River Linux LTS 24
Component/s: Userspace

Description

Task do_testimage  will fail when --all-layers is used and buildtools is used: 

Steps:

1. setup.sh --dl-layer=1 --all-layers --machines=qemuarm --distro=wrlinux-graphics

2.  .  environment-setup-x86_64-wrlinuxsdk-linux

3.  . oe-init-build-env

4.  bitbake wrlinux-image-std-sato && bitbake wrlinux-image-std-sato -c testimage

Failure:
File "/builds/bin/buildtools.buildtools-standalone-10.24.33.0/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/python3.12/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
  File "/builds/layers/meta-arm/meta-arm/lib/oeqa/runtime/cases/fvp_boot.py", line 4, in <module>
    import pexpect
ModuleNotFoundError: No module named 'pexpect'

Steps to Reproduce

======!!!NOTE!!!======
This is local.conf/auto.conf for you reference to reproduce defect, please real bug reportor
                  add the steps from wraxl mail, configs like --dl-layers/--all-layer are not in local.conf/auto.conf

Local.conf:
BB_NO_NETWORK ?= '1'
BB_FETCH_PREMIRRORONLY ?= '${@d.getVar('BB_NO_NETWORK') or 0}'
WRTEMPLATE ?= ""
MACHINE ??= "qemuarm"
DISTRO ??= "wrlinux-graphics"
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
IMAGE_FSTYPES += "tar.bz2"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"
INIT_MANAGER = "systemd"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
PACKAGECONFIG:append:pn-nativesdk-qemu = " sdl"
CONF_VERSION = "2"
OVERRIDES:append = ":osv-wrlinux"
require wrlinux-distro/conf/distro/include/wrlinux-uninative.inc
PSEUDO_IGNORE_PATHS .= ",/home/wrlbuild/builds/builds-c71f8edb-d64e-4073-b4b5-703a0d5c1089/bin"
INHERIT += "rm_work"
PARALLEL_MAKE = "-j 8"
BB_NUMBER_THREADS = "10"
EXTRA_OECMAKE_BUILD += "-j 8"
USER_CLASSES += "buildstats buildstats-summary"
IMAGE_FSTYPES += "ext4"
TEST_IMAGE = "1"
IMAGE_CLASSES += "testimage"
TEST_QEMUBOOT_TIMEOUT = "1500"
QEMU_USE_KVM = "True"
IMAGE_FSTYPES:remove = "live"
BB_NO_NETWORK = "0"
BB_PRESSURE_MAX_CPU = "500"
BB_PRESSURE_MAX_IO = "200"
BB_PRESSURE_MAX_MEMORY = "200"
INHERIT += "report-error"
BAZEL_JOBS = "5"
PARALLEL_MAKE:pn-nodejs = "-j 4"
GPG_PATH = "/tmp/gnupg"
XZ_MEMLIMIT = "20G"
ENABLE_PUSH_SERVER = "no"
INHERIT += "get_rpminfo"
INHERIT += "rm_work"
IMAGE_CLASSES += ' testimage'
QEMU_USE_KVM = '1'
QB_MEM = '-m 4096'
VIRTUAL-RUNTIME_syslog = ''
EXTRA_IMAGE_FEATURES = "dbg-pkgs dev-pkgs debug-tweaks"
require /home/wrlbuild/builds/builds-c71f8edb-d64e-4073-b4b5-703a0d5c1089/qemuarm_std-sato-extend_bigimage/pkgslist.conf


Live chat
Online