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

git at git.openembedded.org git at git.openembedded.org
Thu Mar 7 16:24:02 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 67e6a21f198a502900e72cc5e08025044eb75359
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=$?
 		[ $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