Skip to content

Commit 357e07d

Browse files
committed
tests: fix config lookup path
Ensure the config file is found. Signed-off-by: Daniel Wagner <[email protected]>
1 parent f8b25d0 commit 357e07d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/nvme_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def setUp(self):
7777
self.do_validate_pci_device = True
7878
self.default_nsid = 0x1
7979
self.flbas = 0
80-
self.config_file = 'tests/config.json'
80+
self.config_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'config.json')
8181

8282
self.load_config()
8383
if self.do_validate_pci_device:

0 commit comments

Comments
 (0)