]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
selftest/recipetool: Stop test corrupting tinfoil class
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 Mar 2023 11:44:09 +0000 (11:44 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 Mar 2023 17:35:19 +0000 (17:35 +0000)
commit7fe76fe17f67c1bbd108d02836692fed20d24771
treef32205d2abb087f921c156c6bcb9b3cbde90a6be
parentd48fc8e1f26120e75377caefb5f66eedce50081c
selftest/recipetool: Stop test corrupting tinfoil class

Running recipetool.RecipetoolTests.test_recipetool_handle_license_vars
followed by wic.Wic2.test_biosplusefi_plugin_qemu would show a failure of:

  File "/media/build/poky/meta/lib/oeqa/utils/commands.py", line 351, in runqemu
    qemu = oeqa.targetcontrol.QemuTarget(recipedata, targetlogger, image_fstype)
  File "/media/build/poky/meta/lib/oeqa/targetcontrol.py", line 116, in __init__
    use_kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH'))
  File "/media/build/poky/meta/lib/oe/types.py", line 182, in qemu_use_kvm
    if kvm and boolean(kvm):
  File "/media/build/poky/meta/lib/oe/types.py", line 128, in boolean
    raise ValueError("Invalid boolean value '%s'" % value)
ValueError: Invalid boolean value '/media/build/poky/meta/files/common-licenses'

which made no sense until you realise the recipetool test is corrupting
the tinfoil class. Work on a copy instead to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/recipetool.py