Skip to content

Commit

Permalink
Updated SAI-C to enable SaiObjType autogen (#381)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Kokhan <[email protected]>
  • Loading branch information
andriy-kokhan authored Jun 1, 2023
1 parent 3d45b5f commit de161a2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Changing this will cause build/publish to occur in CI actions
export DASH_ACR_REGISTRY=sonicdash.azurecr.io
export DOCKER_SAI_CHALLENGER_CLIENT_BLDR_IMG_NAME=${DASH_ACR_REGISTRY}/dash-saichallenger-client-bldr
export DOCKER_SAI_CHALLENGER_CLIENT_BLDR_IMG_CTAG?=230530
export DOCKER_SAI_CHALLENGER_CLIENT_BLDR_IMG_CTAG?=230601
2 changes: 1 addition & 1 deletion dash-pipeline/dockerfiles/Dockerfile.saichallenger-client
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM sonicdash.azurecr.io/dash-saichallenger-client-bldr:230530
FROM sonicdash.azurecr.io/dash-saichallenger-client-bldr:230601

ENV SAI_CHALLENGER_PATH /sai-challenger
ENV DASH_PATH /dash
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Requires <url of sai-challenger branch> <commit sha> or something
# sc-client:230530
# sc-client:230601
FROM sc-client

ADD tests/ /tests/
Expand Down
7 changes: 7 additions & 0 deletions test/test-cases/functional/saic/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

from saichallenger.common.sai_dpu import SaiDpu
from saichallenger.common.sai_testbed import SaiTestbed
from saichallenger.common.sai_data import SaiObjType


def pytest_sessionstart(session):
SaiObjType.generate_from_thrift()
SaiObjType.generate_from_json()


def pytest_addoption(parser):
parser.addoption("--traffic", action="store_true", default=False, help="run tests with traffic")
Expand Down
7 changes: 7 additions & 0 deletions test/test-cases/scale/saic/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

from saichallenger.common.sai_dpu import SaiDpu
from saichallenger.common.sai_testbed import SaiTestbed
from saichallenger.common.sai_data import SaiObjType


def pytest_sessionstart(session):
SaiObjType.generate_from_thrift()
SaiObjType.generate_from_json()


def pytest_addoption(parser):
parser.addoption("--traffic", action="store_true", default=False, help="run tests with traffic")
Expand Down

0 comments on commit de161a2

Please sign in to comment.