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 <[email protected]>
  • Loading branch information
lguohan authored and antony-rheneus committed Jul 31, 2019
1 parent c764b05 commit c679b0b
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 c679b0b

Please sign in to comment.