It might not be available on a CI system in the system
path, so use the local one if it was built
slow_tests = True
arg_tools = ['--tools', build_root] if build_root else []
+if build_root and pathlib.Path(f"{build_root}/linux{ukify.guess_efi_arch()}.efi.stub").exists():
+ arg_tools += ['--stub', f"{build_root}/linux{ukify.guess_efi_arch()}.efi.stub"]
def systemd_measure():
opts = ukify.create_parser().parse_args(arg_tools)
f'--os-release={osrel_arg}',
f'--uname={uname_arg}',
f'--output={output}',
- ]
+ ] + arg_tools
if slow_tests:
args += [
f'--secureboot-certificate={cert.name}',