Skip to content
Snippets Groups Projects
Commit 2ed82a21 authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Allow for capsule-capture-libs moving from bindir to pkglibexecdir


This changed in steam-runtime-tools 0.20210608.0 with the move to a
bundled copy of capsule-capture-libs.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 43b6f7b0
No related branches found
No related tags found
No related merge requests found
Pipeline #14251 passed
...@@ -238,9 +238,20 @@ class TestPressureVessel(unittest.TestCase): ...@@ -238,9 +238,20 @@ class TestPressureVessel(unittest.TestCase):
'steam-runtime-system-info', 'steam-runtime-system-info',
): ):
with self.catch('--version', exe=exe): with self.catch('--version', exe=exe):
exe_path = os.path.join('pressure-vessel', 'bin', exe)
if (
exe.endswith('capsule-capture-libs')
and not os.path.exists(exe_path)
):
exe_path = os.path.join(
'pressure-vessel', 'libexec', 'steam-runtime-tools-0',
exe,
)
completed = self.run_subprocess( completed = self.run_subprocess(
[ [
os.path.join('pressure-vessel', 'bin', exe), exe_path,
'--version', '--version',
], ],
check=True, check=True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment