diff options
author | nekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7> | 2011-07-14 16:19:27 +0000 |
---|---|---|
committer | nekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7> | 2011-07-14 16:19:27 +0000 |
commit | 831ca2acc07ad78d66d8533e4e93172b95514eb3 (patch) | |
tree | 4ee9727360e5a62af6b0b01334f5623487f87df7 /tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp | |
parent | c959b173fae668bedcd68f0c939bcf68d82086c6 (diff) | |
download | shadow-831ca2acc07ad78d66d8533e4e93172b95514eb3.tar.gz |
Added tests for usermod.
Diffstat (limited to 'tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp')
-rwxr-xr-x | tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp b/tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp new file mode 100755 index 00000000..c8866d92 --- /dev/null +++ b/tests/usertools/usermod/39_usermod-u_copy_lastlog_entry/login.exp @@ -0,0 +1,13 @@ +#!/usr/bin/expect + +set timeout 2 +expect_after default {puts "\nFAIL"; exit 1} + +spawn /bin/bash +expect "# " + +send "login -f foo\r" +expect "$ " + +send "exit\r" +exit 0 |