Whamcloud - gitweb
LU-17009 tests: fix runtests to read file name with backslash 47/51847/2
authorJian Yu <yujian@whamcloud.com>
Wed, 2 Aug 2023 07:16:04 +0000 (00:16 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 31 Aug 2023 06:37:13 +0000 (06:37 +0000)
commit77b133766bb5a44313cef19db695ba468eeb5572
treeeeeff12543266ea0c3f39d64278ce8514b3b12c2
parent1db59b7b603a917d4ab1bba98d94dd169475b86b
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.

Change-Id: Iab912ba9708f5b64e6bb8d8adc266ff23ed32de5
Test-Parameters: trivial testlist=runtests
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51847
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sarah Liu <sarah@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/runtests