From 5b44766444587e71b3d27ff0e41f161693ad0c16 Mon Sep 17 00:00:00 2001 From: Sinny Kumari Date: Fri, 31 Jul 2020 20:58:31 +0530 Subject: [PATCH] test/e2e: check for installed package on node instead of in the container --- test/e2e/mcd_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/mcd_test.go b/test/e2e/mcd_test.go index 9e3954139e..28760bd745 100644 --- a/test/e2e/mcd_test.go +++ b/test/e2e/mcd_test.go @@ -292,7 +292,7 @@ func TestExtensions(t *testing.T) { assert.Equal(t, infraNode.Annotations[constants.CurrentMachineConfigAnnotationKey], oldInfraRenderedConfig) assert.Equal(t, infraNode.Annotations[constants.MachineConfigDaemonStateAnnotationKey], constants.MachineConfigDaemonStateDone) - installedExtesnions = execCmdOnNode(t, cs, infraNode, "rpm", "-qa", "usbguard") + installedExtesnions = execCmdOnNode(t, cs, infraNode, "chroot", "/rootfs", "rpm", "-qa", "usbguard") if strings.Contains(installedExtesnions, "usbguard") { t.Fatalf("Node %s did not rollback successfully", infraNode.Name) }