summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2024-06-07 17:03:17 +0200
committerRenato Westphal <renato@opensourcerouting.org>2024-06-10 17:28:01 +0200
commitdc354cbfefb1288c6eaf90e01ac4f97e75f4a93b (patch)
tree2c09dd3f28d04eb1765f6ad866ac0ba8c3a68c1c /lib
parenttests: rework isis_tilfa_topo1 to fix timing issues (diff)
downloadfrr-dc354cbfefb1288c6eaf90e01ac4f97e75f4a93b.tar.xz
frr-dc354cbfefb1288c6eaf90e01ac4f97e75f4a93b.zip
tests: introduce method to update reference data in isis_tilfa_topo1
The isis_tilfa_topo1 topotest is comprehensive and contains a large amount of reference data. One problem is that, when changes occur, updating this reference data can be difficult. To address this problem, this commit introduces a method to automatically regenerate the reference data by setting the `REGEN_DATA` environment variable. Usage: $ REGEN_DATA=true python3 ./test_isis_tilfa_topo1.py When `REGEN_DATA` is set, the topotest regenerates reference data from the current run instead of comparing against existing reference data. Note that regenerated data must be manually verified for correctness. This commit also simplifies the reference data by replacing all diff files with complete JSON snapshots. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions