[oe-commits] [meta-openembedded] 15/23: squid: fix ptest failure

git at git.openembedded.org git at git.openembedded.org
Wed Oct 5 16:33:37 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit fe374beca1283bd63503809f51d5a5da7d451e71
Author: Yi Zhao <yi.zhao at windriver.com>
AuthorDate: Fri Sep 23 16:30:29 2016 +0800

    squid: fix ptest failure
    
    Fix error when run ptest on target:
    cp: cannot stat '/usr/bin/true': No such file or directory
    make: *** [Makefile:1120: squid-conf-tests] Error 1
    
    The correct path should be /bin/true on target.
    
    Signed-off-by: Yi Zhao <yi.zhao at windriver.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-networking/recipes-daemons/squid/squid_3.5.20.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-daemons/squid/squid_3.5.20.bb b/meta-networking/recipes-daemons/squid/squid_3.5.20.bb
index 1341d92..364d00e 100644
--- a/meta-networking/recipes-daemons/squid/squid_3.5.20.bb
+++ b/meta-networking/recipes-daemons/squid/squid_3.5.20.bb
@@ -73,6 +73,9 @@ do_install_ptest() {
     sed -e 's/^\(runtest-TESTS:\)/\1 squid-conf-tests/' \
         -e "s/\(list=' \$(TESTS)\)/\1 squid-conf-tests/" \
         -i ${D}${PTEST_PATH}/${TESTDIR}/Makefile
+
+    # Ensure the path for command true is correct
+    sed -i 's:^TRUE = .*$:TRUE = /bin/true:' ${D}${PTEST_PATH}/${TESTDIR}/Makefile
 }
 
 do_install_append() {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list