test: su -p doesn't set home

with out also doing '-'

Signed-off-by: Serge Hallyn <serge@hallyn.com>
This commit is contained in:
Serge Hallyn 2021-04-11 21:39:31 -05:00
parent 0f4347d148
commit 716f3f99ce

View File

@ -44,8 +44,8 @@ send "echo \"PATH=\\\"\$PATH\\\"\"\r"
expect "PATH=\"/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games\"\r"
expect "$ "
send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r"
expect "'/root'root'root'/bin/bash'\r"
send "echo \"'\$USER'\$LOGNAME'\$SHELL'\"\r"
expect "'root'root'/bin/bash'\r"
expect "$ "
send "exit\r"