Whamcloud - gitweb
EX-4093 tests: hot-pools don't recreate pools
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 21 Sep 2022 00:40:46 +0000 (17:40 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 23 Sep 2022 16:41:40 +0000 (16:41 +0000)
the test can save some time skipping pools recreating in every
subtest.

before: 1371 seconds
after:  1058 seconds

Test-Parameters: trivial testlist=hot-pools

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I9304e29b6fc59dd68626b44844dc81500009a80f
Reviewed-on: https://review.whamcloud.com/48614
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/hot-pools.sh

index 9514f96..805c2c2 100755 (executable)
@@ -188,9 +188,6 @@ init_hot_pools_env() {
                changelog_register
        fi
 
-       # create OST pools
-       create_ost_pools
-
        init_lamigo_vars
        init_lpurge_vars
 
@@ -227,6 +224,7 @@ lpurge_logfile() {
 
 build_test_filter
 check_and_setup_lustre
+create_ost_pools
 
 # lamigo operations
 check_one_lamigo_is_started() {
@@ -2198,6 +2196,8 @@ test_72() {
 }
 run_test 72 "lamigo: --oss option and ALR delivery to lamigo"
 
+destroy_test_pools $FSNAME
+
 complete $SECONDS
 check_and_cleanup_lustre
 exit_status