Skip to content

Commit 2c36bb6

Browse files
committed
Give rdmacore a common parent class for type enforcement
1 parent fb38876 commit 2c36bb6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

microsoft/testsuites/dpdk/rdmacore.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@
115115
)
116116

117117

118-
class RdmaCorePackageManagerInstall(PackageManagerInstall):
118+
class RdmaCoreInstaller(Installer):
119+
...
120+
121+
122+
class RdmaCorePackageManagerInstall(RdmaCoreInstaller, PackageManagerInstall):
119123
def _setup_node(self) -> None:
120124
if isinstance(self._os, Fedora):
121125
self._os.install_epel()
@@ -131,7 +135,7 @@ def _check_if_installed(self) -> bool:
131135

132136

133137
# implement SourceInstall for DPDK
134-
class RdmaCoreSourceInstaller(Installer):
138+
class RdmaCoreSourceInstaller(RdmaCoreInstaller):
135139
def _check_if_installed(self) -> bool:
136140
try:
137141
package_manager_install = self._os.package_exists("rdma-core")

0 commit comments

Comments
 (0)