mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 18:32:13 +02:00
openssh: Properly skip ptrace test if tools are missing
Without the exit there will be a SKIP and a FAIL for the same test. Also fix typo in a message. (From OE-Core rev: d44a2ec730fe52d2266c5e4d184cd4c881e172d1) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e1a1e0ba8d
commit
e65a29e311
@@ -7,12 +7,12 @@ sed -i "/\t\tagent-ptrace /d" Makefile
|
||||
make -k .OBJDIR=`pwd` .CURDIR=`pwd` SUDO="sudo" tests \
|
||||
| sed -e 's/^skipped/SKIP: /g' -e 's/^ok /PASS: /g' -e 's/^failed/FAIL: /g'
|
||||
|
||||
|
||||
SSHAGENT=`which ssh-agent`
|
||||
GDB=`which gdb`
|
||||
|
||||
if [ -z "${SSHAGENT}" -o -z "${GDB}" ]; then
|
||||
echo "SKIP: agent-ptrace"
|
||||
exit
|
||||
fi
|
||||
|
||||
useradd openssh-test
|
||||
@@ -33,9 +33,9 @@ EOF
|
||||
r=$?
|
||||
rm -f /tmp/gdb.out
|
||||
if [ $r -ne 0 ]; then
|
||||
echo "FAIL: ptrace agant"
|
||||
echo "FAIL: ptrace agent"
|
||||
else
|
||||
echo "PASS: ptrace agant"
|
||||
echo "PASS: ptrace agent"
|
||||
fi
|
||||
|
||||
${SSHAGENT} -k > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user