From aafc8d51c342e8d1e29c84587a979d799e1e4cd6 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 23 Apr 2026 05:32:05 +0700 Subject: [PATCH] contrib/jenkins.sh: separate JOB_TYPE for card tests A separate job gives us a possibility to skip tests requiring physical cards for specific commits that do not touch the core logic. See the related commits in osmo-ci.git. Change-Id: If76d812ee43b7eb3b57fdc660c60bf31fbff5b16 Related: osmo-ci.git Ia48d1b468f65d7c2e6b4128eeac36d0f3d03c45e Related: osmo-ci.git I986d88545f64e13cd571ba9ff56bc924822e39a0 --- contrib/jenkins.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index b95e80ad..74198d79 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -32,15 +32,21 @@ case "$JOB_TYPE" in # Execute automatically discovered unit tests first python -m unittest discover -v -s tests/unittests - # Run pySim-prog integration tests (requires physical cards) - cd tests/pySim-prog_test/ - ./pySim-prog_test.sh - cd ../../ - # Run pySim-trace test tests/pySim-trace_test/pySim-trace_test.sh + ;; +"card-test") # tests requiring physical cards + virtualenv -p python3 venv --system-site-packages + . venv/bin/activate - # Run pySim-shell integration tests (requires physical cards) + pip install -r requirements.txt + + # Run pySim-prog integration tests + cd tests/pySim-prog_test/ + ./pySim-prog_test.sh + cd ../../ + + # Run pySim-shell integration tests python3 -m unittest discover -v -s ./tests/pySim-shell_test/ # Run pySim-smpp2sim test