Skip to content

Commit

Permalink
Remove line number from invocation logs
Browse files Browse the repository at this point in the history
line numbers are useful for debugging, but the benefit does not
compensate for the painful update of lines in files at each commit
that changes line numbers.
So I have removed those lines only for the test_invocation logs case.

Signed-off-by: EstherLerouzic <[email protected]>
Change-Id: Ic1f628d80b204a9a098f3902ebdfd10b480c7613
  • Loading branch information
EstherLerouzic committed Nov 17, 2023
1 parent 4ab5bac commit 064d3af
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 76 deletions.
18 changes: 9 additions & 9 deletions tests/invocation/logs_path_request
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
INFO gnpy.tools.cli_examples:cli_examples.py:326 Computing path requests meshTopologyExampleV2.xls into JSON format
INFO gnpy.tools.json_io:json_io.py:568 Automatically converting requests from XLS to JSON
INFO gnpy.topology.request:request.py:1104
INFO gnpy.tools.cli_examples:cli_examples.py Computing path requests meshTopologyExampleV2.xls into JSON format
INFO gnpy.tools.json_io:json_io.py Automatically converting requests from XLS to JSON
INFO gnpy.topology.request:request.py
request 0
Computing path from trx Lorient_KMA to trx Vannes_KBE
with path constraint: ['trx Lorient_KMA', 'trx Vannes_KBE']
Computed path (roadms):['roadm Lorient_KMA', 'roadm Vannes_KBE']
INFO gnpy.topology.request:request.py:1104
INFO gnpy.topology.request:request.py
request 1
Computing path from trx Brest_KLA to trx Vannes_KBE
with path constraint: ['trx Brest_KLA', 'roadm Brest_KLA', 'roadm Lannion_CAS', 'roadm Lorient_KMA', 'roadm Vannes_KBE', 'trx Vannes_KBE']
Computed path (roadms):['roadm Brest_KLA', 'roadm Lannion_CAS', 'roadm Lorient_KMA', 'roadm Vannes_KBE']
INFO gnpy.topology.request:request.py:1104
INFO gnpy.topology.request:request.py
request 3
Computing path from trx Lannion_CAS to trx Rennes_STA
with path constraint: ['trx Lannion_CAS', 'trx Rennes_STA']
Computed path (roadms):['roadm Lannion_CAS', 'roadm Rennes_STA']
INFO gnpy.topology.request:request.py:1104
INFO gnpy.topology.request:request.py
request 4
Computing path from trx Rennes_STA to trx Lannion_CAS
with path constraint: ['trx Rennes_STA', 'trx Lannion_CAS']
Computed path (roadms):['roadm Rennes_STA', 'roadm Vannes_KBE', 'roadm Lorient_KMA', 'roadm Lannion_CAS']
INFO gnpy.topology.request:request.py:1104
INFO gnpy.topology.request:request.py
request 5
Computing path from trx Rennes_STA to trx Lannion_CAS
with path constraint: ['trx Rennes_STA', 'trx Lannion_CAS']
Computed path (roadms):['roadm Rennes_STA', 'roadm Lannion_CAS']
INFO gnpy.topology.request:request.py:1104
INFO gnpy.topology.request:request.py
request 7 | 6
Computing path from trx Lannion_CAS to trx Lorient_KMA
with path constraint: ['trx Lannion_CAS', 'trx Lorient_KMA']
Computed path (roadms):['roadm Lannion_CAS', 'roadm Lorient_KMA']
INFO gnpy.topology.request:request.py:1104
INFO gnpy.topology.request:request.py
request 7b
Computing path from trx Lannion_CAS to trx Lorient_KMA
with path constraint: ['trx Lannion_CAS', 'trx Lorient_KMA']
Expand Down
6 changes: 3 additions & 3 deletions tests/invocation/logs_path_requests_run_CD_PMD_PDL_missing
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
INFO gnpy.tools.cli_examples:cli_examples.py:326 Computing path requests CORONET_services.json into JSON format
INFO gnpy.topology.request:request.py:1104
INFO gnpy.tools.cli_examples:cli_examples.py Computing path requests CORONET_services.json into JSON format
INFO gnpy.topology.request:request.py
request 0
Computing path from trx Abilene to trx Albany
with path constraint: ['trx Abilene', 'trx Albany']
Computed path (roadms):['roadm Abilene', 'roadm Dallas', 'roadm Little_Rock', 'roadm Memphis', 'roadm Nashville', 'roadm Louisville', 'roadm Cincinnati', 'roadm Columbus', 'roadm Cleveland', 'roadm Buffalo', 'roadm Rochester', 'roadm Syracuse', 'roadm Albany']
WARNING gnpy.topology.request:request.py:1121 Warning! Request 0 computed path from trx Abilene to trx Albany does not pass with mode 3
WARNING gnpy.topology.request:request.py Warning! Request 0 computed path from trx Abilene to trx Albany does not pass with mode 3
computed SNR in 0.1nm = 14.44
PDL penalty not evaluated
CD penalty not evaluated
Expand Down
Loading

0 comments on commit 064d3af

Please sign in to comment.