mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix when FUSE tests need to be skipped due to sentry configuration.
PiperOrigin-RevId: 323426851
This commit is contained in:
committed by
gVisor bot
parent
c40a3304e4
commit
c8fa685cb6
@@ -323,10 +323,7 @@ TEST(MountTest, RenameRemoveMountPoint) {
|
||||
|
||||
TEST(MountTest, MountFuseFilesystemNoDevice) {
|
||||
SKIP_IF(!ASSERT_NO_ERRNO_AND_VALUE(HaveCapability(CAP_SYS_ADMIN)));
|
||||
|
||||
// Note(gvisor.dev/issue/3076) This won't work in the sentry until the new
|
||||
// device registration is complete.
|
||||
SKIP_IF(IsRunningWithVFS1() || IsRunningOnGvisor());
|
||||
SKIP_IF(IsRunningOnGvisor() && !IsFUSEEnabled());
|
||||
|
||||
auto const dir = ASSERT_NO_ERRNO_AND_VALUE(TempPath::CreateDir());
|
||||
EXPECT_THAT(mount("", dir.path().c_str(), "fuse", 0, ""),
|
||||
@@ -335,10 +332,7 @@ TEST(MountTest, MountFuseFilesystemNoDevice) {
|
||||
|
||||
TEST(MountTest, MountFuseFilesystem) {
|
||||
SKIP_IF(!ASSERT_NO_ERRNO_AND_VALUE(HaveCapability(CAP_SYS_ADMIN)));
|
||||
|
||||
// Note(gvisor.dev/issue/3076) This won't work in the sentry until the new
|
||||
// device registration is complete.
|
||||
SKIP_IF(IsRunningWithVFS1() || IsRunningOnGvisor());
|
||||
SKIP_IF(IsRunningOnGvisor() && !IsFUSEEnabled());
|
||||
|
||||
const FileDescriptor fd =
|
||||
ASSERT_NO_ERRNO_AND_VALUE(Open("/dev/fuse", O_WRONLY));
|
||||
|
||||
Reference in New Issue
Block a user