diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 09:15:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 09:15:27 +0000 |
commit | 425e2c731a79f34454b3b7b35b29040304850197 (patch) | |
tree | 61210e82c8a610c113334f9956ef06f4cb0f3396 /test/test-nvme_options.py | |
parent | Releasing debian version 2.3~rc3-1. (diff) | |
download | nvme-stas-425e2c731a79f34454b3b7b35b29040304850197.tar.xz nvme-stas-425e2c731a79f34454b3b7b35b29040304850197.zip |
Merging upstream version 2.3~rc4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/test-nvme_options.py')
-rwxr-xr-x | test/test-nvme_options.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-nvme_options.py b/test/test-nvme_options.py index adfba5f..91afc2c 100755 --- a/test/test-nvme_options.py +++ b/test/test-nvme_options.py @@ -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: |