testsuite: Upgrade avocado to 113.0

Message ID 20261204165121.2151550-1-wzh@ilbers.de
State New
Headers show
Series testsuite: Upgrade avocado to 113.0 | expand

Commit Message

Zhihang Wei Dec. 4, 2026, 4:51 p.m. UTC
Upgrade avocado to 113.0 to support custom loggers and logging levels,
such as the NOTE level used by the upcoming bitbake version.

Since Avocado is already packaged in Debian Forky, use the Debian
package in the test container.

Bump the test container version to trigger a rebuild with these changes.

Signed-off-by: Zhihang Wei <wzh@ilbers.de>
---
 scripts/ci_build.sh             |  4 ++--
 testsuite/dockerdata/Dockerfile | 22 +++++++++++++++++-----
 testsuite/dockerdata/version    |  2 +-
 3 files changed, 20 insertions(+), 8 deletions(-)

Patch

diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index 241ff8c8..56208005 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -23,8 +23,8 @@  if ! command -v avocado > /dev/null; then
     # shellcheck source=/dev/null
     source /tmp/avocado_venv/bin/activate
     pip install setuptools==81.0.0
-    pip install avocado-framework==103.0
-    pip install avocado-framework-plugin-varianter-yaml-to-mux==103.0
+    pip install avocado-framework==113.0
+    pip install avocado-framework-plugin-varianter-yaml-to-mux==113.0
 fi
 
 # Get Avocado build tests path
diff --git a/testsuite/dockerdata/Dockerfile b/testsuite/dockerdata/Dockerfile
index d4698aea..d00aaea9 100644
--- a/testsuite/dockerdata/Dockerfile
+++ b/testsuite/dockerdata/Dockerfile
@@ -4,14 +4,26 @@  FROM ghcr.io/siemens/kas/kas-isar:${KAS_VERSION}
 
 ARG TARGETPLATFORM
 ARG DEBIAN_FRONTEND=noninteractive
-ARG AVOCADO_VERSION=103.0
+ARG AVOCADO_VERSION=113.0
 
 # Isar testsuite dependencies
-RUN sudo pip3 --proxy=$https_proxy install --break-system-packages \
-              avocado-framework==${AVOCADO_VERSION} \
-              avocado-framework-plugin-varianter-yaml-to-mux==${AVOCADO_VERSION} && \
+RUN printf '%s\n' \
+        'Package: avocado' \
+        'Pin: release n=forky' \
+        'Pin-Priority: 600' \
+        '' \
+        'Package: *' \
+        'Pin: release n=forky' \
+        'Pin-Priority: -1' | \
+    sudo tee /etc/apt/preferences.d/forky > /dev/null && \
+    echo 'deb https://deb.debian.org/debian forky main' | \
+    sudo tee /etc/apt/sources.list.d/forky.list > /dev/null && \
     sudo apt-get update && \
-    sudo apt-get install -y -f --no-install-recommends qemu-system ovmf python3-apt busybox squid && \
+    sudo apt-get install -y -f --no-install-recommends \
+        "avocado=${AVOCADO_VERSION}-*" \
+        qemu-system ovmf python3-apt busybox squid && \
+    sudo pip3 --proxy=$https_proxy install --break-system-packages \
+        avocado-framework-plugin-varianter-yaml-to-mux==${AVOCADO_VERSION} && \
     sudo apt-get clean && \
     sudo rm -rf $(pip3 cache dir) /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
     sudo sh -c 'echo "max_filedescriptors 1048576" > /etc/squid/conf.d/docker.conf'
diff --git a/testsuite/dockerdata/version b/testsuite/dockerdata/version
index 7ed6ff82..1e8b3149 100644
--- a/testsuite/dockerdata/version
+++ b/testsuite/dockerdata/version
@@ -1 +1 @@ 
-5
+6