Message ID | 20240702070051.52959-1-amikan@ilbers.de |
---|---|
State | Accepted, archived |
Headers | show |
Series | CI: Fix tar files mask in source test case | expand |
On Tue, 2024-07-02 at 10:00 +0300, Anton Mikanovich wrote: > As source packages can be compressed not just with gzip make file > mask > little more generic to allow different compression types. > > Signed-off-by: Anton Mikanovich <amikan@ilbers.de> > --- > testsuite/cibase.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/testsuite/cibase.py b/testsuite/cibase.py > index fd571c29..b2a804b7 100755 > --- a/testsuite/cibase.py > +++ b/testsuite/cibase.py > @@ -241,7 +241,7 @@ class CIBaseTest(CIBuilder): > sfiles[target] = dict() > package = target.rsplit(':', 1)[-1] > isar_apt = CIUtils.getVars('REPO_ISAR_DB_DIR', > target=target) > - fpath = f'{package}/{package}*.tar.gz' > + fpath = f"{package}/{package}*.tar.*" > targz = > set(glob.glob(f'{isar_apt}/../apt/*/pool/*/*/{fpath}')) > if len(targz) < 1: > self.fail('No source packages found') > -- > 2.34.1 > Applied to next.
diff --git a/testsuite/cibase.py b/testsuite/cibase.py index fd571c29..b2a804b7 100755 --- a/testsuite/cibase.py +++ b/testsuite/cibase.py @@ -241,7 +241,7 @@ class CIBaseTest(CIBuilder): sfiles[target] = dict() package = target.rsplit(':', 1)[-1] isar_apt = CIUtils.getVars('REPO_ISAR_DB_DIR', target=target) - fpath = f'{package}/{package}*.tar.gz' + fpath = f"{package}/{package}*.tar.*" targz = set(glob.glob(f'{isar_apt}/../apt/*/pool/*/*/{fpath}')) if len(targz) < 1: self.fail('No source packages found')
As source packages can be compressed not just with gzip make file mask little more generic to allow different compression types. Signed-off-by: Anton Mikanovich <amikan@ilbers.de> --- testsuite/cibase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)