From 190f81342720581be0e66cfc60f9730806e49720 Mon Sep 17 00:00:00 2001 From: Peng Tao Date: Tue, 23 Mar 2021 17:49:47 +0800 Subject: [PATCH] runtime/katautils: PFlash should be initialized newQemuHypervisorConfig() sets it to an empty slice. We have to set the same in the test config otherwise it is nil and reflect DeepEqual would fail. Signed-off-by: Peng Tao --- src/runtime/pkg/katautils/config_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/pkg/katautils/config_test.go b/src/runtime/pkg/katautils/config_test.go index eb6b7d6a39..32be51ff68 100644 --- a/src/runtime/pkg/katautils/config_test.go +++ b/src/runtime/pkg/katautils/config_test.go @@ -172,6 +172,7 @@ func createAllRuntimeConfigFiles(dir, hypervisor string) (config testRuntimeConf SharedFS: sharedFS, VirtioFSDaemon: virtioFSdaemon, VirtioFSCache: defaultVirtioFSCacheMode, + PFlash: []string{}, SGXEPCSize: epcSize, }