[LTP] [PATCH] mkswap01.sh: Add "udevadm trigger" before swap verification

Jan Stancek jstancek@redhat.com
Wed Nov 13 17:27:42 CET 2019



----- Original Message -----
> 
> 
> ----- Original Message -----
> > diff --git a/testcases/commands/mkswap/mkswap01.sh
> > b/testcases/commands/mkswap/mkswap01.sh
> > index 3a348c6e6..9437c4a4e 100755
> > --- a/testcases/commands/mkswap/mkswap01.sh
> > +++ b/testcases/commands/mkswap/mkswap01.sh
> > @@ -129,6 +129,8 @@ mkswap_test()
> >  		return
> >  	fi
> >  
> > +	udevadm trigger --name-match=$TST_DEVICE
> 
> It's been many months since I looked at this,..
> Can you explain why this fixes it?
> 
> Don't we need "udevadm settle" as well to make sure udev caught up
> before we check result?

Ah, test is using TST_RETRY_FUNC, so udev should have time
to catch up. Please ignore my query.

Thanks,
Jan



More information about the ltp mailing list