[LTP] [RFC PATCH v3 2/5] tst_test.sh: Introduce TST_NO_DEFAULT_RUN

Petr Vorel pvorel@suse.cz
Wed Apr 4 15:15:32 CEST 2018


Hi,

> > -if [ -z "$LTPROOT" ]; then
> > -	export LTPROOT="$PWD"
> > -	export TST_DATAROOT="$LTPROOT/datafiles"
> > -else
> > -	export TST_DATAROOT="$LTPROOT/testcases/data/$TST_ID"
> > -fi
> > +	if [ -z "$LTPROOT" ]; then
> > +		export LTPROOT="$PWD"
> > +		export TST_DATAROOT="$LTPROOT/datafiles"
> > +	else
> > +		export TST_DATAROOT="$LTPROOT/testcases/data/$TST_ID"
> > +	fi

> I guess that we may want to initialize the TST_ID, LTPROOT and
> TST_DATAROOT regardless, otherwise this looks pretty much
> straighforward and okay.
Thanks for feedback, Cyril!
I'll change it in v4.


Kind regards,
Petr


More information about the ltp mailing list