From: Chris Horn Date: Fri, 22 Oct 2021 01:34:23 +0000 (+0000) Subject: LU-15150 tests: sanity-lnet removes testsuite log on failure X-Git-Tag: 2.14.56~110 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=29918b2db487e7ec8b0bdf785b0a436332824db6 LU-15150 tests: sanity-lnet removes testsuite log on failure cleanup_testsuite() needs to be more selective when removing files created by sub-tests. Test-Parameters: trivial testlist=sanity-lnet Fixes: aa739144551 ("LU-13569 tests: Check LNet Health recovery logic") Signed-off-by: Chris Horn Change-Id: Ic17a68ff2aa552594a0f1ea470c39177abe985fc Reviewed-on: https://review.whamcloud.com/45342 Reviewed-by: Serguei Smirnov Tested-by: Maloo Tested-by: jenkins Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity-lnet.sh b/lustre/tests/sanity-lnet.sh index 30e9e1a..a11e680 100755 --- a/lustre/tests/sanity-lnet.sh +++ b/lustre/tests/sanity-lnet.sh @@ -56,7 +56,7 @@ fi cleanup_testsuite() { trap "" EXIT # Cleanup any tmp files created by the sub tests - rm -f $TMP/sanity-lnet* + rm -f $TMP/sanity-lnet-*.yaml $LNET_PARAMS_FILE cleanup_netns cleanup_lnet if $restore_mounts; then