Whamcloud - gitweb
LU-5373 test: ignore command return value in sanity test_33b 92/12992/2
authorBob Glossman <bob.glossman@intel.com>
Mon, 8 Dec 2014 19:48:22 +0000 (11:48 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 10 Dec 2014 23:28:38 +0000 (23:28 +0000)
Since the test is only looking for a panic and the command
used has different returns depending on kernel version,
ignore the command return value in all cases.

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I63e9d0589b1c11736c9afbb8bee8ea4e11b30a4f
Reviewed-on: http://review.whamcloud.com/12992
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
lustre/tests/sanity.sh

index 1918c3a..448a12d 100644 (file)
@@ -2571,7 +2571,7 @@ test_33b() {
         rm -fr $DIR/d33
         test_mkdir -p $DIR/d33
         chown $RUNAS_ID $DIR/d33
-        $RUNAS $OPENFILE -f 1286739555 $DIR/d33/f33
+        $RUNAS $OPENFILE -f 1286739555 $DIR/d33/f33 || true
 }
 run_test 33b "test open file with malformed flags (No panic)"