]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
pTest-tcl fail fixed dengke/pTest-tcl-fail-fixed
authorDengke Du <dengke.du@windriver.com>
Wed, 16 Mar 2016 09:06:13 +0000 (05:06 -0400)
committerDengke Du <dengke.du@windriver.com>
Wed, 16 Mar 2016 09:27:32 +0000 (05:27 -0400)
http.test httpold.test socket.test failed when run the pTest-tcl,because
the tcl script "info hostname" in /usr/lib/tcl/ptest/tests/http.test fail.
The file /etc/hosts didn't contain the map from hostname to 127.0.0.1, so
it need to add the map. In order to ensure the rootfs correct,add it at
build time, add the following command:
"sed -i '1s/$/    ${MACHINE}/' ${WORKDIR}/hosts"
in do_install() function in the file meta/recipes-core/netbase/netbase_5.3.bb

Signed-off-by: Dengke Du <dengke.du@windriver.com>
meta/recipes-core/netbase/netbase_5.3.bb

index ccd89ff84f62e0a534018fcb368bd91170411050..6688d550ae66faa816e1b4c0fa6d1212d87ecf37 100644 (file)
@@ -14,6 +14,7 @@ SRC_URI[md5sum] = "2637a27fd3de02a278d2b5be7e6558c1"
 SRC_URI[sha256sum] = "81f6c69795044d62b8ad959cf9daf049d0545fd466c52860ad3f933b1e97b88b"
 
 do_install () {
+       sed -i '1s/$/    ${MACHINE}/' ${WORKDIR}/hosts
        install -d ${D}/${mandir}/man8 ${D}${sysconfdir}
        install -m 0644 ${WORKDIR}/hosts ${D}${sysconfdir}/hosts
        install -m 0644 etc-rpc ${D}${sysconfdir}/rpc