Skip to content

Commit

Permalink
Add tmpview attribute for docker virtual switch and skip swss warm re…
Browse files Browse the repository at this point in the history
…start test if temp view enabled.

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
  • Loading branch information
jipanyang committed Jun 9, 2018
1 parent da09da2 commit 873bece
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def __init__(self, name=None, useTempView=True):
os.system("mkdir -p /var/run/redis-vs/noUseTempView")
else:
os.system("rm -f -r /var/run/redis-vs/noUseTempView")
self.tmpview = useTempView

if name != None:
# get virtual switch container
Expand Down
4 changes: 4 additions & 0 deletions tests/test_warm_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

def test_swss_warm_restore(dvs):

# syncd warm start with temp view not supported yet
if dvs.tmpview == True:
return

dvs.runcmd("/usr/bin/stop_swss.sh")
time.sleep(3)
dvs.runcmd("mv /var/log/swss/sairedis.rec /var/log/swss/sairedis.rec.b")
Expand Down

0 comments on commit 873bece

Please sign in to comment.