summaryrefslogtreecommitdiff
path: root/tests/topotests/pim_basic/test_pim.py
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-12-02 10:44:46 -0500
committerDonald Sharp <sharpd@nvidia.com>2024-12-02 10:44:46 -0500
commitd5687faa0c31dbff790d624d2bfda8debeeec8e5 (patch)
tree0518b30133f690c0394934be3460a4aef78545c7 /tests/topotests/pim_basic/test_pim.py
parentd580bcd6e7b9d5d6704cf041e7278bce7638cdb9 (diff)
tests: pim_basic should not use /tmp for outputing of files
Use the appropriate log directory. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/topotests/pim_basic/test_pim.py')
-rw-r--r--tests/topotests/pim_basic/test_pim.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/topotests/pim_basic/test_pim.py b/tests/topotests/pim_basic/test_pim.py
index ce1abe42bb..74d5406970 100644
--- a/tests/topotests/pim_basic/test_pim.py
+++ b/tests/topotests/pim_basic/test_pim.py
@@ -132,14 +132,14 @@ def test_pim_send_mcast_stream():
# Let's establish a S,G stream from r2 -> r1
CWD = os.path.dirname(os.path.realpath(__file__))
r2.run(
- "{}/mcast-tx.py --ttl 5 --count 40 --interval 2 229.1.1.1 r2-eth0 > /tmp/bar".format(
- CWD
+ "{}/mcast-tx.py --ttl 5 --count 40 --interval 2 229.1.1.1 r2-eth0 > {}/r2/mcast_tx_output".format(
+ CWD, tgen.logdir
)
)
# And from r3 -> r1
r3.run(
- "{}/mcast-tx.py --ttl 5 --count 40 --interval 2 229.1.1.1 r3-eth0 > /tmp/bar".format(
- CWD
+ "{}/mcast-tx.py --ttl 5 --count 40 --interval 2 229.1.1.1 r3-eth0 > {}/r3/mcast_tx_output".format(
+ CWD, tgen.logdir
)
)