openruyi: fix ssh_disable test

This commit is contained in:
2026-04-14 17:58:33 +08:00
parent 18db9f5568
commit 926b6876a6

View File

@@ -26,7 +26,7 @@ function pre_test() {
function run_test() {
LOG_INFO "Start executing testcase."
grep -qE "^\s*PermitRootLogin\s+yes" /etc/ssh/sshd_config
CHECK_RESULT $? 1
CHECK_RESULT $? 1 0 "Root login should be disabled"
expect <<EOF
set timeout 15
log_file testlog