Skip some tests

This commit is contained in:
Valentin Niess
2025-05-22 15:27:01 +02:00
parent 39d91e847f
commit f6dd10d6b7
2 changed files with 51 additions and 13 deletions

View File

@@ -76,8 +76,10 @@ class PythonExtractor:
paths = []
if self.arch in (Arch.AARCH64, Arch.X86_64):
paths.append(self.prefix / 'lib64')
paths.append(self.prefix / 'usr/lib64')
elif self.arch == Arch.I686:
paths.append(self.prefix / 'lib')
paths.append(self.prefix / 'usr/lib')
else:
raise NotImplementedError()
paths.append(self.prefix / 'usr/local/lib')
@@ -381,8 +383,10 @@ class ImageExtractor:
cmd = ''.join((
f'trap \'chmod u+rw -R {destination}\' EXIT ; ',
f'mkdir -p {destination} && ',
f'tar -xzf {filename} -C {destination} && ',
f'tar -xzf {filename} --exclude=dev -C {destination} && ',
f'echo \'{layer}\' >> {extracted_file}'
))
subprocess.run(f'/bin/bash -c "{cmd}"', shell=True,
check=True, capture_output=True)
r = subprocess.run(f'/bin/bash -c "{cmd}"', shell=True,
capture_output=True)
if r.returncode != 0:
raise ValueError(r.stderr.decode())