summaryrefslogtreecommitdiff
path: root/tests/expiry/07_expiry_-c_expired_account/expiry.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expiry/07_expiry_-c_expired_account/expiry.exp')
-rwxr-xr-xtests/expiry/07_expiry_-c_expired_account/expiry.exp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/expiry/07_expiry_-c_expired_account/expiry.exp b/tests/expiry/07_expiry_-c_expired_account/expiry.exp
new file mode 100755
index 00000000..1f69e798
--- /dev/null
+++ b/tests/expiry/07_expiry_-c_expired_account/expiry.exp
@@ -0,0 +1,17 @@
+#!/usr/bin/expect
+
+set timeout 2
+expect_after default {puts "\nFAIL"; exit 1}
+
+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 "3"
+expect "# "
+send "exit\r"
+puts "OK\n"
+exit 0