From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Maria Selvam <mariasm@ilbers.de>
Subject: [PATCH 8/8] CI: Resolve sourceTest failure
Date: Thu, 10 Apr 2025 13:50:25 +0300 [thread overview]
Message-ID: <20250410105025.47019-9-amikan@ilbers.de> (raw)
In-Reply-To: <20250410105025.47019-1-amikan@ilbers.de>
From: Maria Selvam <mariasm@ilbers.de>
On "3.0 native" format deb package, by default the VCS related
files are removed. There is NO need to add DPKG_SOURCE_EXTRA_ARGS
parameter explicitly.
Signed-off-by: Maria Selvam <mariasm@ilbers.de>
---
testsuite/cibase.py | 14 +++++++++++++-
testsuite/citest.py | 2 +-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/testsuite/cibase.py b/testsuite/cibase.py
index 075535b1..6ffedcea 100755
--- a/testsuite/cibase.py
+++ b/testsuite/cibase.py
@@ -5,6 +5,7 @@ import os
import re
import shutil
import tempfile
+import tarfile
from cibuilder import CIBuilder, isar_root
from utils import CIUtils
@@ -305,6 +306,16 @@ class CIBaseTest(CIBuilder):
self.fail("Failed rebuild package and image")
def perform_source_test(self, targets, **kwargs):
+ def is_deb_quilt_package(tar_path):
+ with tarfile.open(tar_path) as tar:
+ is_quilt_package = True
+ for member in tar.getnames():
+ if '/debian/source/format' in member:
+ file_data = tar.extractfile(member).read()
+ if b'3.0 (native)' in file_data:
+ is_quilt_package = False
+ return is_quilt_package
+
def get_source_content(targets):
sfiles = dict()
for target in targets:
@@ -316,7 +327,8 @@ class CIBaseTest(CIBuilder):
if len(targz) < 1:
self.fail("No source packages found")
for fname in targz:
- sfiles[target][fname] = CIUtils.get_tar_content(fname)
+ if is_deb_quilt_package(fname):
+ sfiles[target][fname] = CIUtils.get_tar_content(fname)
return sfiles
self.configure(**kwargs)
diff --git a/testsuite/citest.py b/testsuite/citest.py
index e2ce45d1..56ac1f52 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -473,7 +473,7 @@ class SourceTest(CIBaseTest):
"""
Source contents test
- :avocado: tags=source
+ :avocado: tags=source,full
"""
def test_source(self):
--
2.34.1
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20250410105025.47019-9-amikan%40ilbers.de.
next prev parent reply other threads:[~2025-04-10 10:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-10 10:50 [PATCH 0/8] Testsuite coverage update Anton Mikanovich
2025-04-10 10:50 ` [PATCH 1/8] Migrate bullseye dev test to bookworm Anton Mikanovich
2025-04-10 10:50 ` [PATCH 2/8] Migrate repro test from bullseye " Anton Mikanovich
2025-04-10 10:50 ` [PATCH 3/8] Migrate riscv64 targets to Trixie Anton Mikanovich
2025-04-10 10:50 ` [PATCH 4/8] Cover Ubuntu Noble distro with CI Anton Mikanovich
2025-04-10 10:50 ` [PATCH 5/8] Cover Ubuntu Jammy " Anton Mikanovich
2025-04-10 10:50 ` [PATCH 6/8] Cover x86 PC target " Anton Mikanovich
2025-04-10 10:50 ` [PATCH 7/8] Create QEMU targets for Sid Anton Mikanovich
2025-04-10 10:50 ` Anton Mikanovich [this message]
2025-04-15 17:58 ` [PATCH 0/8] Testsuite coverage update Uladzimir Bely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250410105025.47019-9-amikan@ilbers.de \
--to=amikan@ilbers.de \
--cc=isar-users@googlegroups.com \
--cc=mariasm@ilbers.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox