Skip to content

Commit

Permalink
[vstest]: change the redis mount point when --dvsname is provided. (s…
Browse files Browse the repository at this point in the history
…onic-net#663)

unify the redis mountpoint to /var/run/redis-vs/{base-container-name}

user can use --keeptb to create a testbed and later use --dvsname
to rerun test on the testbed. In this case, we need to use same redis
mount point
  • Loading branch information
lguohan authored Oct 31, 2018
1 parent 34e157e commit 057a329
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ persists.
```
docker run --privileged -id --name sw debian bash
sudo ./create_vnet.sh sw
docker run --privileged -v /var/run/redis-vs:/var/run/redis --network container:sw -d --name vs docker-sonic-vs
docker run --privileged -v /var/run/redis-vs/sw:/var/run/redis --network container:sw -d --name vs docker-sonic-vs
```

- Run test using the existing vs container
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def __init__(self, name=None, keeptb=False):
server = VirtualServer(ctn_sw_name, self.ctn_sw_pid, i)
self.servers.append(server)

self.mount = "/var/run/redis-vs/"
self.mount = "/var/run/redis-vs/{}".format(ctn_sw_name)

self.restart()
else:
Expand Down

0 comments on commit 057a329

Please sign in to comment.