[LTP] [PATCH v2 2/4] lib/tst_test.sh: add TST_NEEDS_DRIVERS parameter

Cyril Hrubis chrubis@suse.cz
Thu Sep 13 14:35:01 CEST 2018


Hi!
> +tst_test_drivers()
> +{
> +	[ $# -eq 0 ] && return 0
> +
> +	local drv="$(tst_check_drivers $@ 2>&1)"

Wouldn't it be easier to just redirect the stderr into /dev/null here
and check the $? instead of [ -n "$drv" ] ?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list