Skip to content

Commit 419c10b

Browse files
authored
[sonic-platform-common] Enable pytest during build for Python 3 package (#6442)
**- Why I did it** To enable running Pytest unit tests before building the Python 3 sonic-platform-common package **- How I did it** - Add Python 3 sonic-config-engine package as a dependency of Python 3 sonic-platform-common package (needed for both runtime and unit tests) - No longer disable unit tests when building Python 3 sonic-platform-common package
1 parent c141bb9 commit 419c10b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rules/sonic-platform-common.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ SONIC_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY2)
1010
SONIC_PLATFORM_COMMON_PY3 = sonic_platform_common-1.0-py3-none-any.whl
1111
$(SONIC_PLATFORM_COMMON_PY3)_SRC_PATH = $(SRC_PATH)/sonic-platform-common
1212
$(SONIC_PLATFORM_COMMON_PY3)_PYTHON_VERSION = 3
13-
$(SONIC_PLATFORM_COMMON_PY3)_DEPENDS += $(SONIC_PY_COMMON_PY3)
13+
$(SONIC_PLATFORM_COMMON_PY3)_DEPENDS += $(SONIC_PY_COMMON_PY3) $(SONIC_CONFIG_ENGINE_PY3)
1414
# Synthetic dependency just to avoid race condition
1515
$(SONIC_PLATFORM_COMMON_PY3)_DEPENDS += $(SONIC_PLATFORM_COMMON_PY2)
16-
$(SONIC_PLATFORM_COMMON_PY3)_TEST = n
1716
SONIC_PYTHON_WHEELS += $(SONIC_PLATFORM_COMMON_PY3)

0 commit comments

Comments
 (0)