summaryrefslogtreecommitdiffstats
path: root/tests/tests/usertools/usermod/40_usermod-u_reset_new_lastlog_entry/login.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests/usertools/usermod/40_usermod-u_reset_new_lastlog_entry/login.exp')
-rwxr-xr-xtests/tests/usertools/usermod/40_usermod-u_reset_new_lastlog_entry/login.exp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/tests/usertools/usermod/40_usermod-u_reset_new_lastlog_entry/login.exp b/tests/tests/usertools/usermod/40_usermod-u_reset_new_lastlog_entry/login.exp
new file mode 100755
index 0000000..e534fe5
--- /dev/null
+++ b/tests/tests/usertools/usermod/40_usermod-u_reset_new_lastlog_entry/login.exp
@@ -0,0 +1,13 @@
+#!/usr/bin/expect
+
+set timeout 2
+expect_after default {puts stderr "\nFAIL"; exit 1}
+
+spawn /bin/bash
+expect "# "
+
+send "login -f foo\r"
+expect "$ "
+
+send "exit\r"
+exit 0