Whamcloud - gitweb
LU-15150 tests: sanity-lnet removes testsuite log on failure 42/45342/6
authorChris Horn <chris.horn@hpe.com>
Fri, 22 Oct 2021 01:34:23 +0000 (01:34 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 3 Nov 2021 02:38:52 +0000 (02:38 +0000)
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 <chris.horn@hpe.com>
Change-Id: Ic17a68ff2aa552594a0f1ea470c39177abe985fc
Reviewed-on: https://review.whamcloud.com/45342
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-lnet.sh

index 30e9e1a..a11e680 100755 (executable)
@@ -56,7 +56,7 @@ fi
 cleanup_testsuite() {
        trap "" EXIT
        # Cleanup any tmp files created by the sub tests
 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
        cleanup_netns
        cleanup_lnet
        if $restore_mounts; then