[PATCH] Use qa_user and qa_group for test 219

Jan Kara jack at suse.cz
Tue Dec 18 11:50:06 CST 2012


On Tue 18-12-12 08:38:06, Brian Foster wrote:
> On 12/18/2012 06:33 AM, Jan Kara wrote:
> > Test 219 requires a special user. Use $qa_user and $qa_group (added in this
> > patch) for that purpose instead of hardcoded uid & gid. This also fixes
> > a false failure when repquota does not report quota for users not in passwd.
> > 
> > Signed-off-by: Jan Kara <jack at suse.cz>
> > ---
> ...
> > +# check for the fsgqa group on the machine
> > +#
> > +_require_group()
> > +{
> > +    qa_group=fsgqa
> > +    _cat_group | grep -q $qa_user
> > +    [ "$?" == "0" ] || _notrun "$qa_user user not defined."
> 
> I assume you mean to use $qa_group instead of $qa_user in the above two
> lines?
  Bah, right. The names are the same so I didn't notice my copy-and-paste
mistake :). Fixed version attached.

								Honza
-- 
Jan Kara <jack at suse.cz>
SUSE Labs, CR


More information about the xfs mailing list