[oe-commits] [meta-openembedded] 09/21: run-ptest: supplied user inputs to add_person_cpp

git at git.openembedded.org git at git.openembedded.org
Thu Mar 7 17:36:21 UTC 2019

This is an automated email from the git hooks/post-receive script.

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

commit 44cca74e908930c10f7d864e1a5ee7fad623f6b3
Author: Aditya Tayade <Aditya.Tayade at kpit.com>
AuthorDate: Tue Mar 5 04:08:06 2019 +0000

    run-ptest: supplied user inputs to add_person_cpp
    During protobuf-ptest execution, add_person_cpp waits for user
    inputs to write data into test.data file. Fixed this by supplying
    dummy data through standard input.
    Upstream-Status: Pending
    Signed-off-by: Aditya Tayade <Aditya.Tayade at kpit.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
 meta-oe/recipes-devtools/protobuf/protobuf/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-devtools/protobuf/protobuf/run-ptest b/meta-oe/recipes-devtools/protobuf/protobuf/run-ptest
index 7c3a8d1..b3b2278 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf/run-ptest
+++ b/meta-oe/recipes-devtools/protobuf/protobuf/run-ptest
@@ -8,7 +8,7 @@ for write_exe_full_path in ${DIR}/add_person_*; do
 	if [ -x "${write_exe_full_path}" ]; then
 		write_exe=`basename ${write_exe_full_path}`
 		echo "Generating new test file using ${write_exe}..."
-		${write_exe_full_path} "${TEST_FILE}"
+    printf "1234\nname\nname at example.com\n" | ${write_exe_full_path} "${TEST_FILE}"
 		[ $RETVAL -eq 0 ] || exit $RETVAL

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

More information about the Openembedded-commits mailing list