To reproduce, with an empty tmp directory: $ oe-selftest -r devtool.DevtoolTests.test_devtool_buildclean NOTE: Patching... NOTE: Executing do_unpack... ERROR: Unpack failure for URL: 'http://cdn.kernel.org/pub/linux/utils/raid/mdadm/mdadm-4.0.tar.xz'. Unpack command PATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot-native/usr/bin/x86_64-poky-linux:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot/usr/bin/crossscripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot-native/usr/sbin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot-native/usr/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot-native/sbin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot-native/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/bitbake/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/hosttools" xz -dc /srv/autobuilder/autobuilder.yoctoproject.org/current_sources/mdadm-4.0.tar.xz | tar x --no-same-owner -f - failed with return value 2 which is due to xz-native not having been unpacked. $ bitbake xz-native $ oe-selftest -r devtool.DevtoolTests.test_devtool_buildclean works.
The underlying issue has now been fixed for devtool add / recipetool create, but this bug is actually about devtool modify, which will require quite a bit of reworking in order to fix (basically because there we are executing a task, doing some processing, executing the next task...)
*** Bug 11988 has been marked as a duplicate of this bug. ***
Fix merged to master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=10af6d86b3effc523cfa0ec49741c5b02ee2cf86