generic/45[34]: force UTF-8 codeset to enable utf-8 namer checks in xfs_scrub
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 05:51:58 +0000 (22:51 -0700)
committerEryu Guan <eguan@redhat.com>
Fri, 27 Oct 2017 05:39:00 +0000 (13:39 +0800)
The upcoming xfs_scrub tool will have the ability to warn about
suspicious UTF-8 normalization collisions.  We want generic/45[34]
to be able to test this functionality, but to do that we have to
forcibly set the codeset to UTF-8 via LC_ALL since the rest of
xfstests only uses LC_ALL=C.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/453
tests/generic/454

index ff2973614a365730f432e00a94bd0e354187d941..bda1112984a8ed6e39f7c72362b7070403cfaf40 100755 (executable)
@@ -157,7 +157,7 @@ check_xfs_scrub() {
 }
 
 if check_xfs_scrub; then
-       output="$(${XFS_SCRUB_PROG} -n "${SCRATCH_MNT}" 2>&1 | filter_scrub)"
+       output="$(LC_ALL="C.UTF-8" ${XFS_SCRUB_PROG} -n "${SCRATCH_MNT}" 2>&1 | filter_scrub)"
        echo "${output}" | grep -q "french_" || echo "No complaints about french e accent?"
        echo "${output}" | grep -q "chinese_" || echo "No complaints about chinese width-different?"
        echo "${output}" | grep -q "greek_" || echo "No complaints about greek letter mess?"
index 01279ee87d7c125ec7a4565f76856eb535cbb293..d1f93b266085148935144eb25609d1e8dda56026 100755 (executable)
@@ -153,7 +153,7 @@ check_xfs_scrub() {
 }
 
 if check_xfs_scrub; then
-       output="$(${XFS_SCRUB_PROG} -n "${SCRATCH_MNT}" 2>&1 | filter_scrub)"
+       output="$(LC_ALL="C.UTF-8" ${XFS_SCRUB_PROG} -n "${SCRATCH_MNT}" 2>&1 | filter_scrub)"
        echo "${output}" | grep -q "french_" || echo "No complaints about french e accent?"
        echo "${output}" | grep -q "chinese_" || echo "No complaints about chinese width-different?"
        echo "${output}" | grep -q "greek_" || echo "No complaints about greek letter mess?"