Whamcloud - gitweb
LU-17009 tests: fix runtests to read file name with backslash
authorJian Yu <yujian@whamcloud.com>
Fri, 4 Aug 2023 06:57:17 +0000 (23:57 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 14 Aug 2023 21:35:45 +0000 (21:35 +0000)
commit978bb43af2f34af19a3f2870a5510e41149d446f
tree7a86c9f6386ac98ae1eb6d66040decd7a5c3450e
parent158a6f92942726a6868bf67b7b3c243593f63e38
LU-17009 tests: fix runtests to read file name with backslash

If a file in /etc dir has a name with backslash, then runtests
will fail because the read command considers the backslash as
an escape character. This patch fixes the issue by adding "-r"
option to read.

Lustre-change: https://review.whamcloud.com/51847
Lustre-commit: TBD (from 14044bdfe5fa600bd2c2339032ae8bb54e24b5fb)

Test-Parameters: trivial testlist=runtests

Change-Id: Iab912ba9708f5b64e6bb8d8adc266ff23ed32de5
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51869
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sarah Liu <sarah@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/runtests