[PATCH 1/2 testsuite] tests/nfs_filesystem: remove failing mount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For reasons unclear, we attempt to mount twice, the 2nd time yields an
EBUSY, and then the following test fails. Remove the 2nd mount, which
also resolves the failure. I do not know what was being tested here.

Signed-off-by: Stephen Smalley <stephen.smalley.work@xxxxxxxxx>
---
 tests/nfs_filesystem/test | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/tests/nfs_filesystem/test b/tests/nfs_filesystem/test
index fc8d525..4203206 100755
--- a/tests/nfs_filesystem/test
+++ b/tests/nfs_filesystem/test
@@ -38,7 +38,7 @@ BEGIN {
         $v = " ";
     }
 
-    plan tests => 56;
+    plan tests => 54;
 }
 
 # Set for testing mount(2) on first run
@@ -100,17 +100,6 @@ while ( $i < 2 ) {
     );
     ok( $result eq 0, $test_msg );
 
-    # First mount(2) ok, second currently fails with EBUSY
-    $result = system(
-"runcon -t test_filesystem_t $mount_cmd $v -s $dev -t $target -f $fs_type -o $mount_opts 2>&1"
-    );
-    if ( $i eq 0 and $result >> 8 eq 16 ) {
-        ok( 1, "$test_msg - returned EBUSY, possible bug/feature" );
-    }
-    else {
-        ok( $result eq 0 );
-    }
-
     # Create file and change context via type_transition rule, check ok:
     $result = system(
 "runcon -t test_filesystem_t $filesystem_dir/create_file -f $target/tests/nfs_filesystem/mntpoint/mp1/test_file -e test_filesystem_filetranscon_t $v"
-- 
2.40.1





[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux