summaryrefslogtreecommitdiff
path: root/utilities
diff options
context:
space:
mode:
authorMike Pattrick <mkp@redhat.com>2022-06-20 16:08:07 -0400
committerIlya Maximets <i.maximets@ovn.org>2022-06-28 13:34:58 +0200
commit8c1c447a1d25bfe652d6abefd25d9b70cf44f949 (patch)
treea87156cc8526a6b4c4b1b4eaf8767af4ebfe2edf /utilities
parent751d05b474183e5602ec7dafb44dafe4317a218a (diff)
downloadopenvswitch-8c1c447a1d25bfe652d6abefd25d9b70cf44f949.tar.gz
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. Signed-off-by: Mike Pattrick <mkp@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'utilities')
-rwxr-xr-xutilities/ovs-tcpdump.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/utilities/ovs-tcpdump.in b/utilities/ovs-tcpdump.in
index b3dc65440..7fd26e405 100755
--- a/utilities/ovs-tcpdump.in
+++ b/utilities/ovs-tcpdump.in
@@ -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 = []