[PATCH] fstests: xfs: add necessary version check for xfs/122

Xiaoguang Wang
2016-03-21T08:51:52Z

From: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>

Since commit c0cfa5651f2d ("xfs/122: update against xfsprogs 4.3"), xfs/122
has been updated against xfsprogs 4.3, so add necessary version check.

Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
---
tests/xfs/122 | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/tests/xfs/122 b/tests/xfs/122
index 758cb50..8b35bed 100755
--- a/tests/xfs/122
+++ b/tests/xfs/122
@@ -41,6 +41,11 @@ _supported_fs xfs
_supported_os Linux
_require_command "$INDENT_PROG" indent

+# This test has been updated against xfsprogs 4.3.
+if [ $XFSPROGS_VERSION -lt 40300 ]; then
+ _notrun "this test needs xfsprogs version >= 4.3"
+fi
+
# filter out known changes to xfs type sizes
_type_size_filter()
{
--
1.8.3.1