Files
shadow/tests/expiry/09_expiry_-c_expired_not_inactive/expiry.exp
T

18 lines
286 B
Plaintext
Raw Normal View History

2014-09-17 14:42:55 -05:00
#!/usr/bin/expect
set timeout 2
expect_after default {puts stderr "\nFAIL"; exit 1}
2014-09-17 14:42:55 -05:00
spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"
expect "# "
send "expiry -c\r"
expect "# "
send "echo \$?\r"
expect "0"
expect "# "
send "exit\r"
puts "OK\n"
exit 0