[Pkg-shadow-commits] r3268 - debian/trunk/tests/su/02

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Sat Aug 28 19:49:13 UTC 2010


Author: nekral-guest
Date: 2010-08-28 19:49:12 +0000 (Sat, 28 Aug 2010)
New Revision: 3268

Modified:
   debian/trunk/tests/su/02/env_special-options_-l-p.exp
   debian/trunk/tests/su/02/env_special-options_-p.exp
   debian/trunk/tests/su/02/env_special_root-options_-l-p.exp
   debian/trunk/tests/su/02/env_special_root-options_-p.exp
Log:
Even with -p, PATH is reset. This is now documented and tested.


Modified: debian/trunk/tests/su/02/env_special-options_-l-p.exp
===================================================================
--- debian/trunk/tests/su/02/env_special-options_-l-p.exp	2010-08-28 19:48:17 UTC (rev 3267)
+++ debian/trunk/tests/su/02/env_special-options_-l-p.exp	2010-08-28 19:49:12 UTC (rev 3268)
@@ -35,12 +35,12 @@
 expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser)\r"
 expect "$ "
 
-send_user "\n# PATH should be '/usr/local/bin:/usr/bin:/bin:/usr/games'"
+send_user "\n# Even with -p, PATH is reset"
 send "\r"
 expect "$ "
 
 send "echo \"PATH=\\\"\$PATH\\\"\"\r"
-expect "PATH=\"/usr/local/bin:/usr/bin:/bin:/usr/games\"\r"
+expect "PATH=\"/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games\"\r"
 expect "$ "
 
 send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r"

Modified: debian/trunk/tests/su/02/env_special-options_-p.exp
===================================================================
--- debian/trunk/tests/su/02/env_special-options_-p.exp	2010-08-28 19:48:17 UTC (rev 3267)
+++ debian/trunk/tests/su/02/env_special-options_-p.exp	2010-08-28 19:49:12 UTC (rev 3268)
@@ -36,12 +36,12 @@
 expect "uid=424242(myuser) gid=424242(myuser) groups=424242(myuser)\r"
 expect "$ "
 
-send_user "\n# PATH should be '$PATH'"
+send_user "\n# Even with -p, PATH is reset"
 send "\r"
 expect "$ "
 
 send "echo \"PATH=\\\"\$PATH\\\"\"\r"
-expect "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"

Modified: debian/trunk/tests/su/02/env_special_root-options_-l-p.exp
===================================================================
--- debian/trunk/tests/su/02/env_special_root-options_-l-p.exp	2010-08-28 19:48:17 UTC (rev 3267)
+++ debian/trunk/tests/su/02/env_special_root-options_-l-p.exp	2010-08-28 19:49:12 UTC (rev 3268)
@@ -36,7 +36,7 @@
 expect "uid=0(root) gid=0(root) groups=0(root)\r"
 expect "# "
 
-send_user "\n# PATH should be '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'"
+send_user "\n# Even with -p, PATH is reset"
 send "\r"
 expect "# "
 

Modified: debian/trunk/tests/su/02/env_special_root-options_-p.exp
===================================================================
--- debian/trunk/tests/su/02/env_special_root-options_-p.exp	2010-08-28 19:48:17 UTC (rev 3267)
+++ debian/trunk/tests/su/02/env_special_root-options_-p.exp	2010-08-28 19:49:12 UTC (rev 3268)
@@ -36,12 +36,12 @@
 expect "uid=0(root) gid=0(root) groups=0(root)\r"
 expect "# "
 
-send_user "\n# PATH should be '$PATH'"
+send_user "\n# Even with -p, PATH is reset"
 send "\r"
 expect "# "
 
 send "echo \"PATH=\\\"\$PATH\\\"\"\r"
-expect "PATH=\"$PATH\"\r"
+expect "PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\r"
 expect "# "
 
 send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r"




More information about the Pkg-shadow-commits mailing list