diff --git a/.github/workflows/uki.yaml b/.github/workflows/uki.yaml index 9ff5541da..eff1a9c0d 100644 --- a/.github/workflows/uki.yaml +++ b/.github/workflows/uki.yaml @@ -52,4 +52,10 @@ jobs: run: | export ISO=$(ls $PWD/build/kairos-core-*fedora*.iso) cp tests/go.* . - go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "uki" --fail-fast -r ./tests/ \ No newline at end of file + go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "uki" --fail-fast -r ./tests/ + - uses: actions/upload-artifact@v3 + if: failure() + with: + name: ${{ inputs.flavor }}.logs.zip + path: tests/**/logs/* + if-no-files-found: warn \ No newline at end of file diff --git a/tests/tests_suite_test.go b/tests/tests_suite_test.go index 8d577e75a..b683d95e9 100644 --- a/tests/tests_suite_test.go +++ b/tests/tests_suite_test.go @@ -104,6 +104,7 @@ func gatherLogs(vm VM) { "/run/immucore/immucore.log", "/run/immucore/initramfs_stage.log", "/run/immucore/rootfs_stage.log", + "/tmp/ovmf_debug.log", }) } @@ -207,7 +208,7 @@ func startVM() (context.Context, VM) { // Needed to be set for secureboot! m.Args = append(m.Args, "-machine", "q35,smm=on") // Want to debug EFI booting? Uncomment this line below and check the log, it will show the efi logs - //m.Args = append(m.Args, "-debugcon", "file:/tmp/ovmf_debug.log", "-global", "isa-debugcon.iobase=0x402") + m.Args = append(m.Args, "-debugcon", "file:/tmp/ovmf_debug.log", "-global", "isa-debugcon.iobase=0x402") } diff --git a/tests/uki_test.go b/tests/uki_test.go index 4d03393c5..2956b5054 100644 --- a/tests/uki_test.go +++ b/tests/uki_test.go @@ -25,7 +25,7 @@ var _ = Describe("kairos UKI test", Label("uki"), Ordered, func() { AfterEach(func() { if CurrentSpecReport().Failed() { - //gatherLogs(vm) + gatherLogs(vm) } err := vm.Destroy(nil)