From a289f1c7ed88567e9a860c1eae9fd1874c980b0e Mon Sep 17 00:00:00 2001 From: Nikita Dubrovskii Date: Thu, 27 Feb 2025 12:47:36 +0100 Subject: [PATCH] kolaTestIso: add coverage for '--pxe-append-rootfs' PXE tests Signed-off-by: Nikita Dubrovskii --- vars/kolaTestIso.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vars/kolaTestIso.groovy b/vars/kolaTestIso.groovy index e9adb99..54c1011 100644 --- a/vars/kolaTestIso.groovy +++ b/vars/kolaTestIso.groovy @@ -5,6 +5,7 @@ // marker: string -- some identifying text to add to uploaded artifact filenames // skipUEFI: boolean -- skip UEFI tests // skipSecureBoot boolean -- skip secureboot tests +// skipPxeAppendRootfs boolean -- skip PXE with appended roofs tests def call(params = [:]) { def cosaDir = utils.getCosaDir(params); @@ -31,6 +32,9 @@ def call(params = [:]) { // the signatures for the metal images won't have been created yet. try { shwrap("cd ${cosaDir} && cosa kola testiso --inst-insecure ${extraArgs} --output-dir ${outputDir}/${id}") + if (!params['skipPxeAppendRootfs']) { + shwrap("cd ${cosaDir} && cosa kola testiso pxe* --pxe-append-rootfs ${extraArgs} --output-dir ${outputDir}/${id}") + } } finally { shwrap("cd ${cosaDir} && cosa shell -- tar -C ${outputDir} -c --xz ${id} > ${env.WORKSPACE}/${id}-${token}.tar.xz || :") archiveArtifacts allowEmptyArchive: true, artifacts: "${id}-${token}.tar.xz"