mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
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@kpit.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -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@example.com\n" | ${write_exe_full_path} "${TEST_FILE}"
|
||||
RETVAL=$?
|
||||
[ $RETVAL -eq 0 ] || exit $RETVAL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user