From 908c19886a1773583a7a370bf914f268daf06e95 Mon Sep 17 00:00:00 2001 From: bobijam Date: Thu, 9 Aug 2007 03:29:47 +0000 Subject: [PATCH] Branch b1_6 b=13177 i=green, wangdi Description: sanity_quota fail test_1 Details : There are multiple occurences of $TSTUSR in SLES's /etc/group file, which makes TSTID[2] inunique. --- lustre/ChangeLog | 7 +++++++ lustre/tests/sanity-quota.sh | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/lustre/ChangeLog b/lustre/ChangeLog index ea3492c..9b2a57a 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -122,6 +122,13 @@ Description: umount blocks forever on error Details : In result of wrong using obd_no_recov and obd_force flags client can hand if cancel or some other requests is lost. +Severity : normal +Bugzilla : 13177 +Frequency : Only for SLES +Description: sanity_quota fail test_1 +Details : There are multiple occurences of $TSTUSR in SLES's /etc/group + file, which makes TSTID[2] inunique. + -------------------------------------------------------------------------------- 2007-07-30 Cluster File Systems, Inc. diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 5d9b8d5..afb0907 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -285,27 +285,27 @@ post_test() { setup() { # create local test group - GRP="`cat /etc/group | grep "$TSTUSR" | awk -F: '{print $1}'`" + GRP="`cat /etc/group | grep "^${TSTUSR}:" | awk -F: '{print $1}'`" if [ -z "$GRP" ]; then groupadd -g $TSTID "$TSTUSR" fi - TSTID="`cat /etc/group | grep "$TSTUSR" | awk -F: '{print $3}'`" + TSTID="`cat /etc/group | grep "^${TSTUSR}:" | awk -F: '{print $3}'`" - GRP2="`cat /etc/group | grep "$TSTUSR2" | awk -F: '{print $1}'`" + GRP2="`cat /etc/group | grep "^${TSTUSR2}:" | awk -F: '{print $1}'`" if [ -z "$GRP2" ]; then groupadd -g $TSTID2 "$TSTUSR2" fi - TSTID2="`cat /etc/group | grep "$TSTUSR2" | awk -F: '{print $3}'`" + TSTID2="`cat /etc/group | grep "^${TSTUSR2}:" | awk -F: '{print $3}'`" # create test user - USR="`cat /etc/passwd | grep "$TSTUSR" | awk -F: '{print $1}'`" + USR="`cat /etc/passwd | grep "^${TSTUSR}:" | awk -F: '{print $1}'`" if [ -z "$USR" ]; then useradd -u $TSTID -g $TSTID -d /tmp "$TSTUSR" fi RUNAS="runas -u $TSTID" - USR2="`cat /etc/passwd | grep "$TSTUSR2" | awk -F: '{print $1}'`" + USR2="`cat /etc/passwd | grep "^${TSTUSR2}:" | awk -F: '{print $1}'`" if [ -z "$USR2" ]; then useradd -u $TSTID2 -g $TSTID2 -d /tmp "$TSTUSR2" fi -- 1.8.3.1