Skip to content

Commit

Permalink
[vstest]: report error when team kernel module is not available (soni…
Browse files Browse the repository at this point in the history
…c-net#994)

make explicit failure if team kernel module is not available on the system

Signed-off-by: Guohan Lu <gulv@microsoft.com>
  • Loading branch information
lguohan authored Jul 25, 2019
1 parent ab8fead commit 6236b8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ def __init__(self, name=None, keeptb=False, fakeplatform=None):
self.alld = self.basicd + self.swssd + self.syncd + self.rtd + self.teamd
self.client = docker.from_env()

if subprocess.check_call(["/sbin/modprobe", "team"]) != 0:
raise NameError("cannot install kernel team module")

self.ctn = None
if keeptb:
self.cleanup = False
Expand Down

0 comments on commit 6236b8f

Please sign in to comment.