Skip to content

Commit

Permalink
Run tests in a sequence that makes sense
Browse files Browse the repository at this point in the history
because the enrollment has to happen so that vars are not empty for the
other test to check whether secure boot is enabled or not

Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily committed Apr 24, 2024
1 parent 4a71d2c commit 71973ed
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@ jobs:
runs-on: ubuntu-latest
container:
image: archlinux:latest
# volumes:
# - /dev/kvm:/dev/kvm
options: --device /dev/kvm
steps:
# - name: Enable KVM group perms
# run: |
# setfacl -m u:root:rwx /dev/kvm
- run: pacman --noconfirm --noprogressbar -Syu
- run: pacman --noconfirm --noprogressbar -S make go asciidoc gcc git edk2-ovmf qemu-system-x86
- uses: actions/checkout@v1
Expand Down
1 change: 1 addition & 0 deletions tests/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func TestEnrollement(t *testing.T) {

WithVM(t, func(vm *VMTest) {
t.Run("Enroll keys", vm.RunTests("github.com/foxboron/sbctl/tests/integrations/enroll_keys"))
t.Run("Secure boot enabled", vm.RunTests("github.com/foxboron/sbctl/tests/integrations/secure_boot_enabled"))
t.Run("List enrolled keys", vm.RunTests("github.com/foxboron/sbctl/tests/integrations/list_enrolled_keys"))
})
}
Expand Down

0 comments on commit 71973ed

Please sign in to comment.