diff options
Diffstat (limited to 'tests/chsh/05_chsh_myuser_restricted_shell/run.exp')
-rwxr-xr-x | tests/chsh/05_chsh_myuser_restricted_shell/run.exp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/chsh/05_chsh_myuser_restricted_shell/run.exp b/tests/chsh/05_chsh_myuser_restricted_shell/run.exp deleted file mode 100755 index 1abf0858..00000000 --- a/tests/chsh/05_chsh_myuser_restricted_shell/run.exp +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/expect - -set timeout 5 - -if {$argc < 1} { - puts "usage: run.exp \[shell] \[user]" - exit 1 -} -set shell [lindex $argv 0] - -if {$argc == 2} { - spawn /usr/bin/chsh [lindex $argv 1] -} else { - spawn /usr/bin/chsh -} - -expect "You may not change the shell for 'myuser'.\r\n" -expect { - eof { - if ([string compare $expect_out(buffer) ""]) { - set fp [open "tmp/out" w] - puts $fp "$expect_out(buffer)" - puts "\nFAIL" - exit 1 - } - } default { - puts "\nFAIL" - exit 1 - } -} - -puts "\nPASS" -exit 0 - |