Skip to content

Commit 658fe19

Browse files
yutongzhang-microsoftwangxin
authored andcommitted
Modify the running topo of script test_fdb_mac_move.py. (#7923)
Description of PR In PR #7789, I add mark pytest.mark.topology('any') before the script test_fdb_mac_move.py, thus this script will run on all of topologies. But in this script, we need to get the VLAN information of topo. On no-vlan topo, such as t1, it will raise an error KeyError: 'VLAN'. So in this PR, modify the mark and this script will only run on T0. What is the motivation for this PR? In PR #7789, I add mark pytest.mark.topology('any') before the script test_fdb_mac_move.py, thus this script will run on all of topologies. But in this script, we need to get the VLAN information of topo. On no-vlan topo, such as t1, it will raise an error KeyError: 'VLAN'. So in this PR, modify the mark and this script will only run on T0. How did you do it? Modify the pytest mark before the script. Signed-off-by: Yutong Zhang <yutongzhang@microsoft.com>
1 parent 6479610 commit 658fe19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fdb/test_fdb_mac_move.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
logger = logging.getLogger(__name__)
2323

2424
pytestmark = [
25-
pytest.mark.topology('any')
25+
pytest.mark.topology('t0')
2626
]
2727

2828

0 commit comments

Comments
 (0)