]> code.ossystems Code Review - openembedded-core.git/commitdiff
ptest: use fakeroot for do_install_ptest_base
authorRoss Burton <ross.burton@intel.com>
Mon, 7 Sep 2015 17:31:39 +0000 (18:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Sep 2015 13:25:09 +0000 (14:25 +0100)
The do_install_ptest_base task wasn't running in the fakeroot environment so
files installed by do_install_ptest were often not owned by root:root but the
user running the builds.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/ptest.bbclass

index 2ac9143abecd3c94ba13b6a9b1116f0121475496..f30f26afabb64f4a8c75c06967dcd2a16102a654 100644 (file)
@@ -36,7 +36,7 @@ do_install_ptest() {
     :
 }
 
-do_install_ptest_base() {
+fakeroot do_install_ptest_base() {
     if [ -f ${WORKDIR}/run-ptest ]; then
         install -D ${WORKDIR}/run-ptest ${D}${PTEST_PATH}/run-ptest
         if grep -q install-ptest: Makefile; then