Whamcloud - gitweb
LU-16200 tests: test_32[f,g]: specify blocksize explicitly 08/48708/2
authorElena Gryaznova <elena.gryaznova@hpe.com>
Fri, 30 Sep 2022 15:39:13 +0000 (18:39 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 15 Oct 2022 05:57:16 +0000 (05:57 +0000)
Fix conf-sanity:test_32f(), conf-sanity:test_32g() to be
independent from BLOCKSIZE environment variable.

To reproduce the failure, just run:
   BLOCKSIZE=4096 ONLY=32g sh conf-sanity.sh
  -total 36
  -total 64
  +total 16
  +total 9
   144115205289279502 -rw-r--r-- 1 0 0  1160 1550597702 README
   conf-sanity test_32g: @@@@@@ FAIL: list verification failed

Fixes: 3c1c462399 ("LU-1943 tests: Refresh conf-sanity 32[ab]")
Test-Parameters: trivial testlist=conf-sanity
Signed-off-by: Elena Gryaznova <elena.gryaznova@hpe.com>
HPE-bug-id: LUS-11013
Reviewed-by: Vladimir Saveliev <vlaidimir.saveliev@hpe.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Change-Id: Iaa07df8f5a9ba286ef5b3a5581b667cc7de63334
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48708
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexander <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/conf-sanity.sh

index b7ae09a..ed3737b 100644 (file)
@@ -1534,13 +1534,13 @@ test_32newtarball() {
                pushd_dir=$remote_dir
                if [[ "$MDS1_VERSION" -ge $(version_code 2.7.0) ]]; then
                        pushd $striped_dir
-                       ls -Rni --time-style=+%s >$tmp/img/list2
+                       BLOCKSIZE=1024 ls -Rni --time-style=+%s >$tmp/img/list2
                        popd
                fi
        fi
 
        pushd $pushd_dir
-       ls -Rni --time-style=+%s >$tmp/img/list
+       BLOCKSIZE=1024 ls -Rni --time-style=+%s >$tmp/img/list
        find ! -name .lustre -type f -exec sha1sum {} \; |
                sort -k 2 >$tmp/img/sha1sums
        popd
@@ -2360,7 +2360,7 @@ t32_test() {
                                pushd $tmp/mnt/lustre
                        fi
                        $r cat $list_file | sort -k 6 >$tmp/list.orig
-                       ls -Rni --time-style=+%s | sort -k 6 |
+                       BLOCKSIZE=1024 ls -Rni --time-style=+%s | sort -k 6 |
                                sed 's/\. / /' >$tmp/list || {
                                error_noexit "ls"
                                return 1