Commit c12c379c7c for frr
commit c12c379c7cc3c53d6b7b73e20e96a33dbef7f981
Author: Lincoln Thurlow <lincoln@isi.edu>
Date: Tue Dec 1 09:58:59 2026 -0800
tests: check the PCEP multipath warning's color
test_steering_route_multipath_cap cannot fail on its warning check.
The check looks for "not represented" anywhere in pathd's log, and
the churn test before it already logs that warning for its own
colors.
This commit checks for the warning about the color the cap test
leaves out.
Signed-off-by: Lincoln Thurlow <lincoln@isi.edu>
diff --git a/tests/topotests/pathd_pcep_steering_topo1/test_pathd_pcep_steering_topo1.py b/tests/topotests/pathd_pcep_steering_topo1/test_pathd_pcep_steering_topo1.py
index 9a72db4e64..dda315e54d 100644
--- a/tests/topotests/pathd_pcep_steering_topo1/test_pathd_pcep_steering_topo1.py
+++ b/tests/topotests/pathd_pcep_steering_topo1/test_pathd_pcep_steering_topo1.py
@@ -514,7 +514,10 @@ def test_steering_route_multipath_cap():
check = lambda: check_steering_colors(colors)
_, result = topotest.run_and_expect(check, None, count=60, wait=1)
assert result is None, "steering route wrong at the cap: {}".format(result)
- assert "not represented" in pathd_log_text(), "pathd did not log the cap"
+ left_out = "policy color {} (and higher) not represented".format(
+ CAP_COLOR_BASE + cap - 1
+ )
+ assert left_out in pathd_log_text(), "pathd did not log the cap"
# An included color goes: the color left out takes its place
logger.info("removing an included color")