diff options
author | Liu Yiding <yidingx.liu@intel.com> | 2019-06-18 11:24:10 +0800 |
---|---|---|
committer | Philip Li <philip.li@intel.com> | 2019-06-18 12:25:27 +0800 |
commit | c03bfaff46fba25d13715097a020d4793109355e (patch) | |
tree | 94eff05c6b4616609522835a38a9a4dadfef07bd | |
parent | 78b7ffaeb39029b8f04390bebf9a1272edbf3006 (diff) | |
download | lkp-tests-c03bfaff46fba25d13715097a020d4793109355e.tar.gz |
tests/xfstests: fix Reflink not supported by scratch filesystem type: xfs
Fix the following issue
------
generic/540 [not run] Reflink not supported by scratch filesystem type: xfs
generic/541 [not run] Reflink not supported by scratch filesystem type: xfs
generic/542 [not run] Reflink not supported by scratch filesystem type: xfs
generic/543 [not run] Reflink not supported by scratch filesystem type: xfs
generic/544 [not run] Reflink not supported by scratch filesystem type: xfs
generic/546 [not run] Reflink not supported by scratch filesystem type: xfs
------
The original logic only match generic-group[0-9]
------
if [ "$fs" = xfs ] && [ "${test%?}" = "generic-group" ]; then
------
After fix this error, tests passed
------
liuyd@inn:/result/xfstests/4HDD-xfs-generic-group11/vm-snb-4G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.6/gcc-7/v5.2-rc5/5$
---snip---
"xfstests.540.pass": [
1
],
"xfstests.541.pass": [
1
],
"xfstests.542.pass": [
1
],
"xfstests.543.pass": [
1
],
"xfstests.544.pass": [
1
],
"xfstests.545.pass": [
1
],
"xfstests.546.pass": [
1
],
------
Signed-off-by: Liu Yiding <yidingx.liu@intel.com>
Signed-off-by: Philip Li <philip.li@intel.com>
-rwxr-xr-x | tests/xfstests | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/xfstests b/tests/xfstests index 75381bb9..4df7496f 100755 --- a/tests/xfstests +++ b/tests/xfstests @@ -141,7 +141,7 @@ set_env() [ "$test" = "xfs-244" ] && log_eval export MKFS_OPTIONS="-mcrc=0" [ "$test" = "xfs-132" ] && (mkfs.xfs -f -mreflink=1 $TEST_DEV || die "mkfs.xfs test_dev failed") - if [ "$fs" = xfs ] && [ "${test%?}" = "generic-group" ]; then + if [ "$fs" = xfs ] && [ "${test%%[0-9]*}" = "generic-group" ]; then mkfs.xfs -f -mreflink=1 $TEST_DEV || die "mkfs.xfs test_dev failed" log_eval export MKFS_OPTIONS="-mreflink=1" fi |