Allow options to be passed when creating an instance of the nvpci interface

Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
This commit is contained in:
Christopher Desiniotis
2023-06-09 17:27:31 -07:00
parent 76018d282e
commit 066d8f30bc
3 changed files with 30 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ func NewMockNvpci() (mock *MockNvpci, rerr error) {
}()
mock = &MockNvpci{
NewFrom(rootDir).(*nvpci),
New(WithPCIDevicesRoot(rootDir)).(*nvpci),
}
return mock, nil