[Pkg-shadow-commits] r796 - trunk/tests/su/02

Nicolas FRANCOIS nekral-guest at costa.debian.org
Sun Jan 15 00:40:33 UTC 2006


Author: nekral-guest
Date: 2006-01-15 00:40:33 +0000 (Sun, 15 Jan 2006)
New Revision: 796

Modified:
   trunk/tests/su/02/run.exp2
Log:
Also check the HOME, USER, LOGNAME and SHELL environment variables.
I don't know if this behavior is correct. But at least we should detect if it changes.


Modified: trunk/tests/su/02/run.exp2
===================================================================
--- trunk/tests/su/02/run.exp2	2006-01-15 00:29:17 UTC (rev 795)
+++ trunk/tests/su/02/run.exp2	2006-01-15 00:40:33 UTC (rev 796)
@@ -37,6 +37,10 @@
 expect "PATH=\"/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games\"\r"
 expect "$ "
 
+send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r"
+expect "'/home/'myuser'myuser'/bin/sh'\r"
+expect "$ "
+
 send "exit\r"
 expect "# "
 
@@ -56,6 +60,10 @@
 expect "PATH=\"/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games\"\r"
 expect "$ "
 
+send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r"
+expect "'/home/'myuser'myuser'/bin/sh'\r"
+expect "$ "
+
 send "exit\r"
 expect "# "
 
@@ -76,6 +84,10 @@
 expect "PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11\"\r"
 expect "# "
 
+send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r"
+expect "'/root'root'root'/bin/bash'\r"
+expect "# "
+
 send "exit\r"
 expect "# "
 
@@ -95,6 +107,10 @@
 expect "PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11\"\r"
 expect "# "
 
+send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r"
+expect "'/root'root'root'/bin/bash'\r"
+expect "# "
+
 send "exit\r"
 expect "# "
 
@@ -114,6 +130,10 @@
 expect "PATH=\"bar:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11\"\r"
 expect "$ "
 
+send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r"
+expect "'/root'root'root'/bin/bash'\r"
+expect "$ "
+
 send "exit\r"
 expect "# "
 
@@ -135,6 +155,10 @@
 expect "PATH=\"/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games\"\r"
 expect "$ "
 
+send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r"
+expect "'/root'root'root'/bin/bash'\r"
+expect "$ "
+
 send "exit\r"
 expect "# "
 




More information about the Pkg-shadow-commits mailing list