summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp_prefix_sid
diff options
context:
space:
mode:
authorY Bharath <y.bharath@samsung.com>2024-06-12 13:56:34 +0530
committerY Bharath <y.bharath@samsung.com>2024-06-12 13:56:34 +0530
commita63bfb75669780df7ce29201c87db77b83c6f60a (patch)
tree90ca6e3876d2775c6855ddfdaa1ec3be0b0b4cf6 /tests/topotests/bgp_prefix_sid
parent82dcb1d63e7366ee2b3bd1d6896f64369cbe4d4a (diff)
tests: supress unused variables at topotests
For code maintainability, suppressed unused variables with "_" Signed-off-by: y-bharath14 <y.bharath@samsung.com>
Diffstat (limited to 'tests/topotests/bgp_prefix_sid')
-rw-r--r--tests/topotests/bgp_prefix_sid/test_bgp_prefix_sid.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/topotests/bgp_prefix_sid/test_bgp_prefix_sid.py b/tests/topotests/bgp_prefix_sid/test_bgp_prefix_sid.py
index 1e6e731a18..fca60e8cea 100644
--- a/tests/topotests/bgp_prefix_sid/test_bgp_prefix_sid.py
+++ b/tests/topotests/bgp_prefix_sid/test_bgp_prefix_sid.py
@@ -93,11 +93,11 @@ def test_r1_receive_and_advertise_prefix_sid_type1():
return topotest.json_cmp(output, expected)
test_func = functools.partial(_check_type1_r1, router, "3.0.0.1/32", 800001, 1)
- success, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
+ _, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
assert result is None, 'Failed _check_type1_r1 in "{}"'.format(router)
test_func = functools.partial(_check_type1_r1, router, "3.0.0.2/32", 800002, 2)
- success, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
+ _, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
assert result is None, 'Failed _check_type1_r1 in "{}"'.format(router)
@@ -160,11 +160,11 @@ def test_peer2_receive_prefix_sid_type1():
return topotest.json_cmp(output, expected)
test_func = functools.partial(_check_type1_peer2, "3.0.0.1/32", label=8001)
- success, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
+ _, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
assert result is None, 'Failed _check_type1_peer2 in "{}"'.format("peer2")
test_func = functools.partial(_check_type1_peer2, "3.0.0.2/32", label=8002)
- success, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
+ _, result = topotest.run_and_expect(test_func, None, count=10, wait=0.5)
assert result is None, 'Failed _check_type1_peer2 in "{}"'.format("peer2")