[LTP] [PATCH] lsmod01.sh: retry test couple times to lower false positives

Petr Vorel pvorel@suse.cz
Fri Oct 18 15:45:26 CEST 2019


Hi Jan,

...
>  	if [ "$lsmod_output" != "$modules_output" ]; then
> -		tst_res TFAIL "lsmod output different from /proc/modules."
> +		tst_res TINFO "lsmod output different from /proc/modules."

>  		echo "$lsmod_output" > temp1
>  		echo "$modules_output" > temp2
>  		diff temp1 temp2
Also this code could be wrapped with
if tst_cmd_available diff; then

(I wouldn't add it to TST_NEEDS_CMDS)

Kind regards,
Petr


More information about the ltp mailing list