From 1934bee35b72e9843e87512df42a77a072210d60 Mon Sep 17 00:00:00 2001 From: Linsongnan Date: Sat, 25 Jan 2025 10:33:11 +0800 Subject: [PATCH] fix(tests): add pytest topology mark for test_srv6_basic_sanity test (#16545) Signed-off-by: linsongnan --- .azure-pipelines/impacted_area_testing/get_test_scripts.py | 2 +- .azure-pipelines/testscripts_analyse/analyse_testscripts.py | 2 +- tests/srv6/test_srv6_basic_sanity.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/impacted_area_testing/get_test_scripts.py b/.azure-pipelines/impacted_area_testing/get_test_scripts.py index d02615689bc..d2501553e82 100644 --- a/.azure-pipelines/impacted_area_testing/get_test_scripts.py +++ b/.azure-pipelines/impacted_area_testing/get_test_scripts.py @@ -17,7 +17,7 @@ def topo_name_to_topo_checker(topo_name): - pattern = re.compile(r'^(wan|wan-pub-isis|wan-com|wan-pub|wan-pub-cisco|wan-3link-tg|' + pattern = re.compile(r'^(ciscovs-7nodes|ciscovs-5nodes|wan|wan-pub-isis|wan-com|wan-pub|wan-pub-cisco|wan-3link-tg|' r't0|t0-52|t0-mclag|mgmttor|m0|mc0|mx|' r't1|t1-lag|t1-56-lag|t1-64-lag|' r'ptf|fullmesh|dualtor|t2|tgen|multidut-tgen|dpu|any|snappi|util|' diff --git a/.azure-pipelines/testscripts_analyse/analyse_testscripts.py b/.azure-pipelines/testscripts_analyse/analyse_testscripts.py index b6cf84abb86..8131091bca2 100644 --- a/.azure-pipelines/testscripts_analyse/analyse_testscripts.py +++ b/.azure-pipelines/testscripts_analyse/analyse_testscripts.py @@ -42,7 +42,7 @@ def topo_name_to_type(topo_name): - pattern = re.compile(r'^(wan|t0|t1|ptf|fullmesh|dualtor|t2|tgen|multidut-tgen|mgmttor' + pattern = re.compile(r'^(ciscovs-5nodes|ciscovs-7nodes|wan|t0|t1|ptf|fullmesh|dualtor|t2|tgen|multidut-tgen|mgmttor' r'|m0|mc0|mx|dpu|any|snappi|t0-sonic|t1-multi-asic|t0-2vlans)') match = pattern.match(topo_name) if match is None: diff --git a/tests/srv6/test_srv6_basic_sanity.py b/tests/srv6/test_srv6_basic_sanity.py index 3360babc70e..22e4e427327 100644 --- a/tests/srv6/test_srv6_basic_sanity.py +++ b/tests/srv6/test_srv6_basic_sanity.py @@ -31,7 +31,7 @@ # pytestmark = [ pytest.mark.disable_loganalyzer, # Disable automatic loganalyzer, since we use it for the test - pytest.mark.topology("any"), + pytest.mark.topology("ciscovs-7nodes"), pytest.mark.skip_check_dut_health ]