Whamcloud - gitweb
LU-10038 test: improve error reporting in sanity test_133g() 19/30219/2
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 15 Nov 2017 16:05:57 +0000 (10:05 -0600)
committerJinshan Xiong <jinshan.xiong@intel.com>
Thu, 23 Nov 2017 00:47:06 +0000 (00:47 +0000)
In sanity test_133g() remove the output redirection to /dev/null so
that errors from do_facet or find go to the test logs. Suppress error
messages in badarea_io.c.

Test-Parameters: trivial envdefinitions=ONLY=133 testlist=sanity,sanity,sanity,sanity,sanity,sanity,sanity,sanity,sanity,sanity
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ia51ccdacb995ff51a6467cbdd280c8965cfc5f47
Reviewed-on: https://review.whamcloud.com/30219
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
lustre/tests/badarea_io.c
lustre/tests/sanity.sh

index b926ce9..b9da6db 100644 (file)
@@ -4,6 +4,9 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#undef perror
+#define perror(str) ((void)0)
+
 int main(int argc, char **argv)
 {
        int rc;
index 881a3d7..a803cd0 100755 (executable)
@@ -9993,7 +9993,7 @@ test_133g() {
                -type f \
                -not -name force_lbug \
                -not -name changelog_mask \
-               -exec badarea_io '{}' \; &> /dev/null ||
+               -exec badarea_io '{}' \; ||
                error "find $proc_dirs failed"
 
        local facet
@@ -10008,7 +10008,7 @@ test_133g() {
                        -type f \
                        -not -name force_lbug \
                        -not -name changelog_mask \
-                       -exec badarea_io '{}' \\\; &> /dev/null ||
+                       -exec badarea_io '{}' \\\; ||
                                error "$facet find $facet_proc_dirs failed"
        done