Skip to content

Commit

Permalink
runtime: Fix make test for virtcontainers.
Browse files Browse the repository at this point in the history
This commit fixes make test for virtcontainers. It fixes:
a. hypervisor_test::TestAssetPath by adding igvm asset path.
b. clh_test::TestCreateVM by setting testData expectError to
false for ConfidentialGuest test config. This is needed because
we have allowed noneProtection for test purposes for Confidential
configuration.

Signed-off-by: Sumedh Alok Sharma <[email protected]>
  • Loading branch information
Sumynwa committed Dec 2, 2024
1 parent 56c5fa1 commit 8fd0c5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/virtcontainers/clh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ func TestClhCreateVM(t *testing.T) {
{config0, false, true},
{config1, false, true},
{config2, false, true},
{config3, true, false},
{config3, false, false},
{config4, false, true},
{config5, false, true},
}
Expand Down
1 change: 1 addition & 0 deletions src/runtime/virtcontainers/hypervisor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ func TestAssetPath(t *testing.T) {

KernelPath: "/" + "io.katacontainers.config.hypervisor.kernel",

IgvmPath: "/" + "io.katacontainers.config.hypervisor.igvm",
ImagePath: "/" + "io.katacontainers.config.hypervisor.image",
InitrdPath: "/" + "io.katacontainers.config.hypervisor.initrd",

Expand Down

0 comments on commit 8fd0c5e

Please sign in to comment.