diff --git a/tests/common/plugins/conditional_mark/tests_mark_conditions.yaml b/tests/common/plugins/conditional_mark/tests_mark_conditions.yaml index 11f1d88023..d1030685ab 100644 --- a/tests/common/plugins/conditional_mark/tests_mark_conditions.yaml +++ b/tests/common/plugins/conditional_mark/tests_mark_conditions.yaml @@ -1398,6 +1398,12 @@ telemetry/test_telemetry.py: conditions: - "(is_multi_asic==True) and (release in ['201811', '201911'])" +telemetry/test_telemetry.py::test_osbuild_version: + skip: + reason: "Testcase ignored due to Github issue: https://github.com/sonic-net/sonic-mgmt/issues/12021" + conditions: + - https://github.com/sonic-net/sonic-mgmt/issues/12021 + ####################################### ##### pktgen ##### ####################################### diff --git a/tests/telemetry/test_telemetry.py b/tests/telemetry/test_telemetry.py index a25593709e..5e756189f7 100644 --- a/tests/telemetry/test_telemetry.py +++ b/tests/telemetry/test_telemetry.py @@ -112,9 +112,9 @@ def test_osbuild_version(duthosts, enum_rand_one_per_hwsku_hostname, ptfhost, lo show_gnmi_out = ptfhost.shell(cmd)['stdout'] result = str(show_gnmi_out) - assert_equal(len(re.findall(r'"build_version": "sonic\.', result)), + assert_equal(len(re.findall(r'"build_version": "SONiC\.', result)), 1, "build_version value at {0}".format(result)) - assert_equal(len(re.findall(r'sonic\.NA', result, flags=re.IGNORECASE)), + assert_equal(len(re.findall(r'SONiC\.NA', result, flags=re.IGNORECASE)), 0, "invalid build_version value at {0}".format(result))