Whamcloud - gitweb
LU-15358 tests: Escape quote symbols in sanityn test 26b 44/59444/2
authorOleg Drokin <green@whamcloud.com>
Tue, 27 May 2025 04:08:26 +0000 (00:08 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jun 2025 23:06:31 +0000 (23:06 +0000)
Shellcheck highlights that those quotes are actually unquoting
the variables. And looking at prior code we really try to ensure
you can tell which one is which even when some of them are empty
or have spaces.

Test-Parameters: trivial
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Change-Id: I2cdd0dcc1bce59b397f928cffeb790c74d8dc311
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59444
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanityn.sh

index cb0d9fe..e98b83e 100755 (executable)
@@ -1082,7 +1082,7 @@ test_26b() {
         mt2=`stat -c %Y $DIR2/$tfile`
 
         if [ x"$mt1" != x"$mt2" ]; then
-                error "not equal mtime, client1: "$mt1", client2: "$mt2"."
+                error "not equal mtime, client1: \"$mt1\", client2: \"$mt2\"."
         fi
 }
 run_test 26b "sync mtime between ost and mds"