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 <[email protected]> --- utilities/ovs-tcpdump.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utilities/ovs-tcpdump.in b/utilities/ovs-tcpdump.in index 82d1bedfa..4798bdea6 100755 --- a/utilities/ovs-tcpdump.in +++ b/utilities/ovs-tcpdump.in @@ -403,7 +403,10 @@ def py_which(executable): def main(): - db_sock = 'unix:@RUNDIR@/db.sock' + if 'OVS_RUNDIR' in os.environ: + db_sock = 'unix:%s' % os.path.join(os.environ['OVS_RUNDIR'], 'db.sock') + else: + db_sock = 'unix:@RUNDIR@/db.sock' interface = None tcpdargs = [] -- 2.27.0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
