Whamcloud - gitweb
b=20718 sanity-quota test_14b: improve error message
authorElena Gryaznova <grev@sun.com>
Wed, 3 Feb 2010 19:25:32 +0000 (22:25 +0300)
committerJohann Lombardi <johann@sun.com>
Fri, 5 Feb 2010 14:54:10 +0000 (15:54 +0100)
i=Andrew.Perepechko

make check_runas_id_ret () more verbose

lustre/tests/sanity-quota.sh
lustre/tests/test-framework.sh

index 502d644..fc056c9 100644 (file)
@@ -2177,10 +2177,10 @@ test_98()
         local missing_users=""
 
         for user in $SANITY_QUOTA_USERS; do
-                check_runas_id_ret $user quota_usr "runas -u $user -g quota_usr" >/dev/null 2>/dev/null || \
+                check_runas_id_ret $user quota_usr "runas -u $user -g quota_usr" || \
                        missing_users="$missing_users $user"
         done
-        [ -n "$missing_users" ] && { skip_env "the following users are missing: $missing_users" ; return 0 ; }
+        [ -n "$missing_users" ] && { skip_env "different uid-s on client and servers, or missing users: $missing_users" ; return 0 ; }
 
         cleanupall
         formatall
index 7d2e70b..e17b012 100644 (file)
@@ -2523,7 +2523,10 @@ check_runas_id_ret() {
     mkdir $DIR/d0_runas_test
     chmod 0755 $DIR
     chown $myRUNAS_UID:$myRUNAS_GID $DIR/d0_runas_test
-    $myRUNAS touch $DIR/d0_runas_test/f$$ || myRC=1
+    if ! $myRUNAS touch $DIR/d0_runas_test/f$$ ; then
+        do_nodes --verbose $(comma_list $(nodes_list)) grep -w $myRUNAS_UID /etc/passwd
+        myRC=1
+    fi
     rm -rf $DIR/d0_runas_test
     return $myRC
 }