Docker: enable ssh tests

Test: restore tty after restconf start
This commit is contained in:
Olof hagsand 2023-11-19 12:16:23 +01:00
parent 8601690c91
commit cafbe7d200
10 changed files with 41 additions and 9 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
# Netconf callhome RFC 8071
# Requires an openssh + opensshd install + ssh-keygen -A
# Magic line must be first in script (see README.md)
s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
@ -13,6 +14,13 @@ if ! [ -x "$ssh_bin" ]; then
if [ "$s" = $0 ]; then exit 0; else return 0; fi # skip
fi
if ! [ -x "/usr/sbin/sshd" ]; then
echo "...sshd not installed"
rm -rf $dir
if [ "$s" = $0 ]; then exit 0; else return 0; fi # skip
fi
# Dont run this test with valgrind
if [ $valgrindtest -ne 0 ]; then
echo "...skipped "