forked from redrsoe2100/os-autotest
openruyi: fix ssh_disable test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user