Whamcloud - gitweb
LU-16085 tests: fix sanityn test_106c 35/48435/2
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 6 Sep 2022 06:57:04 +0000 (08:57 +0200)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Sep 2022 17:03:22 +0000 (17:03 +0000)
Fix sanityn test_106c after modification introduced when fixing
stat attributes_mask.

Test-Parameters: trivial testlist=sanityn env=ONLY=106c
Fixes: 0e48653c27 ("LU-16085 llite: fix stat attributes_mask")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I370813b9b1c22450577c390964a0cc410735b989
Reviewed-on: https://review.whamcloud.com/48435
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanityn.sh

index 5febd53..308072b 100755 (executable)
@@ -5571,7 +5571,7 @@ test_106c() {
        # Mask supported in stx_attributes by Lustre is
        # STATX_ATTR_IMMUTABLE(0x10) | STATX_ATTR_APPEND(0x20) : (0x30).
        mask=$($STATX -c %p $DIR/$tfile)
-       (( 0x$mask & 0x30 == 0x30 )) ||
+       (( (0x$mask & 0x30) == 0x30 )) ||
                error "supported stx_attributes: got '0x$mask', expected '0x30' at least"
        chattr +i $DIR/$tfile || error "chattr +i $DIR/$tfile failed"
        mask=$($STATX -c %r $DIR/$tfile)