diff --git a/tests/api/test_udf.py b/tests/api/test_udf.py index b89c0bc9..566ec48d 100644 --- a/tests/api/test_udf.py +++ b/tests/api/test_udf.py @@ -1,6 +1,14 @@ from pprint import pprint +import pytest +@pytest.fixture(scope='module', autouse=True) +def skip_all(testbed_instance): + testbed = testbed_instance + if testbed is not None and len(testbed.npu) != 1: + pytest.skip('invalid for {} testbed'.format(testbed.name)) + +@pytest.mark.npu class TestSaiUdf: # object with parent SAI_OBJECT_TYPE_UDF_MATCH SAI_OBJECT_TYPE_UDF_GROUP