[Pkg-shadow-commits] r2992 - in debian/trunk/tests/usertools/14_usermod_move_homedir_other_device: . data

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Fri May 22 11:48:23 UTC 2009


Author: nekral-guest
Date: 2009-05-22 11:48:23 +0000 (Fri, 22 May 2009)
New Revision: 2992

Modified:
   debian/trunk/tests/usertools/14_usermod_move_homedir_other_device/data/home_ls-a
   debian/trunk/tests/usertools/14_usermod_move_homedir_other_device/usermod.test
Log:
Check the right place for the user's homedir.


Modified: debian/trunk/tests/usertools/14_usermod_move_homedir_other_device/data/home_ls-a
===================================================================
--- debian/trunk/tests/usertools/14_usermod_move_homedir_other_device/data/home_ls-a	2009-05-22 11:47:18 UTC (rev 2991)
+++ debian/trunk/tests/usertools/14_usermod_move_homedir_other_device/data/home_ls-a	2009-05-22 11:48:23 UTC (rev 2992)
@@ -1,7 +1,7 @@
--rw-r--r-- foo:foo `/home/foo2/.tata'
--rw-r--r-- foo:foo `/home/foo2/toto'
-crw-r--r-- foo:foo `/home/foo2/null'
-drwxr-xr-x foo:foo `/home/foo2/.'
-drwxr-xr-x foo:foo `/home/foo2/titi'
-drwxr-xr-x root:root `/home/foo2/..'
-lrwxrwxrwx foo:foo `/home/foo2/tutu' -> `/tmp/home/foo2/toto'
+-rw-r--r-- foo:foo `/tmp/home/foo2/.tata'
+-rw-r--r-- foo:foo `/tmp/home/foo2/toto'
+crw-r--r-- foo:foo `/tmp/home/foo2/null'
+drwxr-xr-x foo:foo `/tmp/home/foo2/.'
+drwxr-xr-x foo:foo `/tmp/home/foo2/titi'
+drwxr-xr-x root:root `/tmp/home/foo2/..'
+lrwxrwxrwx foo:foo `/tmp/home/foo2/tutu' -> `/tmp/home/foo2/toto'

Modified: debian/trunk/tests/usertools/14_usermod_move_homedir_other_device/usermod.test
===================================================================
--- debian/trunk/tests/usertools/14_usermod_move_homedir_other_device/usermod.test	2009-05-22 11:47:18 UTC (rev 2991)
+++ debian/trunk/tests/usertools/14_usermod_move_homedir_other_device/usermod.test	2009-05-22 11:48:23 UTC (rev 2992)
@@ -27,7 +27,7 @@
 mkdir /tmp/home
 mount --bind /home /tmp/home
 
-echo -n "Change the user's home directory (usermod -m -d /home/foo2 foo)..."
+echo -n "Change the user's home directory (usermod -m -d /tmp/home/foo2 foo)..."
 usermod -m -d /tmp/home/foo2 foo
 echo "OK"
 
@@ -49,14 +49,14 @@
 echo -n "Check the user's home directory was moved..."
 test -d /home/foo2
 echo "OK"
-echo -n "Check content of /home/foo2/..."
-stat --printf "%A %U:%G %N\n" /home/foo2/* /home/foo2/.* 2>/dev/null | sort > tmp/home_ls-a
+echo -n "Check content of /tmp/home/foo2/..."
+stat --printf "%A %U:%G %N\n" /tmp/home/foo2/* /tmp/home/foo2/.* 2>/dev/null | sort > tmp/home_ls-a
 diff -rauN data/home_ls-a tmp/home_ls-a
 echo "OK"
 rm -f tmp/home_ls-a
 
 echo -n "Remove the new home directory..."
-rm -rf /home/foo2
+rm -rf /tmp/home/foo2
 echo "done"
 
 umount /tmp/home




More information about the Pkg-shadow-commits mailing list