Hi,
 
I am working in a project in which we use LTP framework to execute all our tests. If you are not the right person, can you forward my email?
 
Generally speaking we have two kind of tests, the automated and semi-automated.
 
In the second type we are looking at our device and verying if it is performing the desire function.
 
to execute it we do:
../bin/pan -e -S 1h -a 1617 -n 1617 -p -f cmd -l log
 
The command file (cmd):
 
A0001_foo   echo "A0003"
A0001 ../bin/question.sh "Do you see it?"  && exit 0 || exit 1
A0001_bar   echo "A0003"
 
and question.sh file is:
 
echo $1
read -n 1 ans
if [ $ans == "y" ]; then
    echo
    echo yes;
    exit 0;
else 
    echo
    echo no;
    exit 1;
fi
 
When the pan command in perform it give us:
<<<test_output>>>
Do you see it?
y

 
<<<execution_status>>>
duration=12 termination_type=driver_interrupt termination_id=9 corefile=no
cutime=0 cstime=2
<<<test_end>>>
bash-3.1#

Note that I need to hit CTRL-C to stop the execution because it hangs... when getting to the read command from bash...

If I execute question.sh directly, it perform fine...
 
bash-3.1# ../bin/question.sh "Did your see it?"
Did your see it?
y
yes
bash-3.1#
 
What do you think?
Can you help me?
 
Thanks in advance,
Abraham