Skip to content

Commit

Permalink
adding skip all function
Browse files Browse the repository at this point in the history
  • Loading branch information
selldinesh committed Sep 21, 2023
1 parent 3a42ce3 commit 8d4888f
Show file tree
Hide file tree
Showing 42 changed files with 409 additions and 26 deletions.
10 changes: 10 additions & 0 deletions tests/api/test_acl_counter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiAclCounter:
# object with parent SAI_OBJECT_TYPE_ACL_TABLE

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_acl_entry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiAclEntry:
# object with parent SAI_OBJECT_TYPE_ACL_TABLE

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_acl_range.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiAclRange:
# object with no parents

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_acl_table.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiAclTable:
# object with no parents

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_acl_table_group.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiAclTableGroup:
# object with no parents

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_acl_table_group_member.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiAclTableGroupMember:
# object with parent SAI_OBJECT_TYPE_ACL_TABLE_GROUP SAI_OBJECT_TYPE_ACL_TABLE

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_ars.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiArs:
# object with no attributes

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_ars_profile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiArsProfile:
# object with no attributes

Expand Down
26 changes: 0 additions & 26 deletions tests/api/test_bridge.py

This file was deleted.

10 changes: 10 additions & 0 deletions tests/api/test_buffer_pool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiBufferPool:
# object with no parents

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_counter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiCounter:
# object with no attributes

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_debug_counter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiDebugCounter:
# object with no parents

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_dtel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiDtel:
# object with no attributes

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_dtel_event.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiDtelEvent:
# object with no parents

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_dtel_int_session.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiDtelIntSession:
# object with no attributes

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_dtel_report_session.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiDtelReportSession:
# object with no attributes

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_generic_programmable.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiGenericProgrammable:
# object with no parents

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_hash.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiHash:
# object with no attributes

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_hostif_trap.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiHostifTrap:
# object with no parent objects

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_hostif_trap_group.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiHostifTrapGroup:
# object with no attributes

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_ipmc_group.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiIpmcGroup:
# object with no attributes

Expand Down
10 changes: 10 additions & 0 deletions tests/api/test_isolation_group.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
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 TestSaiIsolationGroup:
# object with no parents

Expand Down
Loading

0 comments on commit 8d4888f

Please sign in to comment.