Whamcloud - gitweb
LU-6772 tests: fix malform open in sanity:33d 15/16315/4
authorYang Sheng <yang.sheng@intel.com>
Tue, 8 Sep 2015 15:52:22 +0000 (23:52 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 19 Sep 2015 03:30:13 +0000 (03:30 +0000)
The malform open original intends to verify whether panic.
Though we send a malform open flags, but it has possible
to success. So we should ignore the return value as test_33c.

Signed-off-by: Yang Sheng <yang.sheng@intel.com>
Change-Id: Ibc20e4864068f07dac30739792dc09e3844b7579
Reviewed-on: http://review.whamcloud.com/16315
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh

index a0fc920..63a3c4e 100644 (file)
@@ -2698,8 +2698,7 @@ test_33d() {
                                        error "create" || true
        $RUNAS $OPENFILE -f O_RDWR:O_CREAT -m 0444 $remote_dir/f33 &&
                                    error "open RDWR" || true
-       $RUNAS $OPENFILE -f 1286739555 $remote_dir/f33 &&
-                                   error "create" || true
+       $RUNAS $OPENFILE -f 1286739555 $remote_dir/f33 || true
 }
 run_test 33d "openfile with 444 modes and malformed flags under remote dir"