ovs-tcpdump: Default to OVS_RUNDIR if present.
Now ovs-tcpdump will check for an OVS_RUNDIR environment variable and
if present, use it instead of the default RUNDIR. This is useful when
used in conjunction with OVS_PAUSE_TEST while running the test suite.
@@ -406,7 +406,8 @@ def py_which(executable):
def main():
- db_sock = 'unix:@RUNDIR@/db.sock'
+ rundir = os.environ.get('OVS_RUNDIR', '@RUNDIR@')
+ db_sock = 'unix:%s' % os.path.join(rundir, "db.sock")
interface = None
tcpdargs = []
