[OE-core] [PATCH 1/1] pTest-tcl fail fixed
Dengke Du
dengke.du at windriver.com
Wed Mar 16 09:43:59 UTC 2016
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 at windriver.com>
---
meta/recipes-core/netbase/netbase_5.3.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-core/netbase/netbase_5.3.bb b/meta/recipes-core/netbase/netbase_5.3.bb
index ccd89ff..6688d55 100644
--- a/meta/recipes-core/netbase/netbase_5.3.bb
+++ b/meta/recipes-core/netbase/netbase_5.3.bb
@@ -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
--
1.9.1
More information about the Openembedded-core
mailing list