[LTP] [PATCH 1/1] network.sh: Cleanup netpan logs

Petr Vorel pvorel@suse.cz
Sun Jun 10 12:23:08 CEST 2018


Hi,

> network.sh script doesn't delete it's logs, which can lead to fill /tmp.
> Remove these files, which unify behavior with runltp and runltplite.sh
> (just don't use trap to force remove on INT).

...
>  testscripts/network.sh | 2 ++
...
> @@ -121,3 +121,5 @@ if [ $? -eq "0" ]; then
>  else
>  	echo ltp-pan reported FAIL
>  fi
> +
> +rm -rf $TMPDIR

I suppose there is no reason to keep ltp-net logs, that it was left by accident.
This patch keeps /tmp/netpan.log, but that's just one file.


Kind regards,
Petr


More information about the ltp mailing list