[LTP] [PATCH] macsec: fix double delete the tmp file

Petr Vorel pvorel@suse.cz
Sat Jun 9 17:06:17 CEST 2018


Hi Sun,

> The virt_cleanup and tst_ipsec_cleanup in both in the cleanup() which will 
> double delete the tmp file. and result to report below info:
> "rm: cannot remove ‘/tmp/ltp-ddLUcf8ACl/macsec01.6YQ9qGRNuC’: No such file 
> or directory"
Thanks for your patch. I've noticed that, but didn't try to fix that as macsec
tests run under new API doesn't complain, because tst_test.sh (unlike test.sh)
actually check whether directory exist. (Next week hopefully I'm going to send
patch which rewrites tests which uses ipsec_lib.sh and virt_lib.sh).

Your test introduces duplicity with tst_ipsec_cleanup, it's here 3 times
+ code in macsec02.sh uses spaces instead of tabs.

As the issue isn't specific and it's going to be fixed just by migrating to new
API, I'd propose not to accept it. Alexey, what do you think?


Kind regards,
Petr


More information about the ltp mailing list