Whamcloud - gitweb
LU-15358 tests: sanity-quota wait_reintegration wrong quotes 45/59445/4
authorOleg Drokin <green@whamcloud.com>
Tue, 27 May 2025 04:18:22 +0000 (00:18 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Jun 2025 06:37:50 +0000 (06:37 +0000)
Looks like these quotes need to be escaped otherwise they
just unquote the variable and grep might get confused.

Test-Parameters: trivial
Fixes: c2db06180b29 ("LU-2183 quota: quota tests for DNE")
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Change-Id: I3b129e3924da4cbe4d6baa6e8c958881a799de26
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59445
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-quota.sh

index bd53dd7..ff187f6 100755 (executable)
@@ -186,9 +186,9 @@ wait_reintegration() {
                if $(facet_up $tgt); then
                        # reintegration starts after recovery completion
                        wait_recovery_complete $tgt
-                       wait_update_facet $tgt "$cmd |
-                               grep "$qtype" | awk '{ print \\\$3 }'" \
-                                       "$result" $max || return 1
+                       wait_update_facet $tgt "$cmd | grep $qtype |
+                               awk '{ print \\\$3 }'" "$result" $max ||
+                               return 1
                fi
        done
        return 0