1
0
Fork 0

Adding upstream version 2.3~rc4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 12:55:06 +01:00
parent e89431f274
commit 8b146d606d
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
16 changed files with 708 additions and 276 deletions

View file

@ -2,7 +2,7 @@
import os
import logging
import unittest
from staslib import conf, log
from staslib import defs, conf, log
from pyfakefs.fake_filesystem_unittest import TestCase
@ -10,7 +10,7 @@ class TestStandardNvmeFabricsFile(unittest.TestCase):
def test_regular_user(self):
conf.NvmeOptions.destroy() # Make sure singleton does not exist
if os.path.exists('/dev/nvme-fabrics'):
if os.geteuid() != 0:
if os.geteuid() != 0 and defs.KERNEL_VERSION < defs.KERNEL_ALL_MIN_VERSION:
with self.assertRaises(PermissionError):
nvme_options = conf.NvmeOptions()
else: