From a8c60ff36d856a83e71b3fce98e80992d66de662 Mon Sep 17 00:00:00 2001 From: prnaraya Date: Thu, 23 Dec 2021 08:17:01 -0600 Subject: [PATCH] Looks like I missed a set of duplicated string literals in tests/utils.go, changed these Signed-off-by: prnaraya --- tests/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils.go b/tests/utils.go index f2dfcd45049a..ddda500bb310 100644 --- a/tests/utils.go +++ b/tests/utils.go @@ -4500,7 +4500,7 @@ func GenerateHelloWorldServer(vmi *v1.VirtualMachineInstance, testPort int, prot Expect(console.SafeExpectBatch(vmi, []expect.Batcher{ &expect.BSnd{S: serverCommand}, &expect.BExp{R: console.PromptExpression}, - &expect.BSnd{S: "echo $?\n"}, + &expect.BSnd{S: EchoLastReturnValue}, &expect.BExp{R: console.RetValue("0")}, }, 60)).To(Succeed()) } @@ -5156,7 +5156,7 @@ func MountCloudInitFunc(devName string) func(*v1.VirtualMachineInstance) { &expect.BExp{R: console.PromptExpression}, &expect.BSnd{S: cmdCheck}, &expect.BExp{R: console.PromptExpression}, - &expect.BSnd{S: "echo $?\n"}, + &expect.BSnd{S: EchoLastReturnValue}, &expect.BExp{R: console.RetValue("0")}, }, 15) Expect(err).ToNot(HaveOccurred())