diff options
Diffstat (limited to 'tests/expiry/01_expiry_-c_no_expiry/expiry.exp')
-rwxr-xr-x | tests/expiry/01_expiry_-c_no_expiry/expiry.exp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/expiry/01_expiry_-c_no_expiry/expiry.exp b/tests/expiry/01_expiry_-c_no_expiry/expiry.exp new file mode 100755 index 0000000..a24b624 --- /dev/null +++ b/tests/expiry/01_expiry_-c_no_expiry/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 "0" +expect "# " +send "exit\r" +puts "OK\n" +exit 0 |