test: su -p doesn't set home
with out also doing '-' Signed-off-by: Serge Hallyn <serge@hallyn.com>
This commit is contained in:
parent
0f4347d148
commit
716f3f99ce
@ -44,8 +44,8 @@ send "echo \"PATH=\\\"\$PATH\\\"\"\r"
|
|||||||
expect "PATH=\"/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games\"\r"
|
expect "PATH=\"/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games\"\r"
|
||||||
expect "$ "
|
expect "$ "
|
||||||
|
|
||||||
send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r"
|
send "echo \"'\$USER'\$LOGNAME'\$SHELL'\"\r"
|
||||||
expect "'/root'root'root'/bin/bash'\r"
|
expect "'root'root'/bin/bash'\r"
|
||||||
expect "$ "
|
expect "$ "
|
||||||
|
|
||||||
send "exit\r"
|
send "exit\r"
|
||||||
|
Loading…
Reference in New Issue
Block a user