Whamcloud - gitweb
LU-4981 test: Fix IO redirect in sanity 133g
[fs/lustre-release.git] / lustre / tests / sanity.sh
index b64924c..a22a7d0 100644 (file)
@@ -9018,7 +9018,8 @@ test_133g() {
                -type f \
                -not -name force_lbug \
                -not -name changelog_mask \
-               -exec badarea_io '{}' \; > /dev/null
+               -exec badarea_io '{}' \; &> /dev/null ||
+               error "find $proc_dirs failed"
 
        [ $(lustre_version_code $SINGLEMDS) -le $(version_code 2.5.54) ] &&
                skip "Too old lustre on MDS"
@@ -9031,7 +9032,8 @@ test_133g() {
                        -type f \
                        -not -name force_lbug \
                        -not -name changelog_mask \
-                       -exec badarea_io '{}' \\\; &> /dev/null
+                       -exec badarea_io '{}' \\\; &> /dev/null ||
+               error "$facet find $proc_dirs failed"
 
        done