Skip to contentSkip to conversation

run-ptest: supplied user inputs to add_person_cpp

PATCH In review Aditya Tayade 2 participants 2 messages Mar 5, 2019 – Mar 6, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 meta-oe/recipes-devtools/protobuf/protobuf/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/protobuf/protobuf/run-ptest +1 -1
index 7c3a8d1..dc6c83d 100644
@@ -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\[email protected]\n" | ${write_exe_full_path} "${TEST_FILE}"
 RETVAL=$?
 [ $RETVAL -eq 0 ] || exit $RETVAL
 

--
2.7.4

This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.

#1 lore raw
Quoted 5 lines · Aditya Tayade

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

Thanks for the patch.

This needs to go into Master first, then I can backport it to Thud, then sumo.

- armin

Quoted 23 lines
---
 meta-oe/recipes-devtools/protobuf/protobuf/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/protobuf/protobuf/run-ptest +1 -2
index 7c3a8d1..dc6c83d 100644
@@ -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\[email protected]\n" | ${write_exe_full_path} "${TEST_FILE}"
 RETVAL=$?
 [ $RETVAL -eq 0 ] || exit $RETVAL
 
--

2.7.4

This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.