From 3b89def5b4fdc94f4245c5dcd111d311e65d88f9 Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Fri, 17 Feb 2023 12:38:22 +0200 Subject: [PATCH] Make sure we run command in bash to avoid error in Ubuntu ``` set: Illegal option -o pipefail ``` Signed-off-by: Dimitris Karakasilis --- tests/encryption_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/encryption_test.go b/tests/encryption_test.go index 832fcf0..a6a787c 100644 --- a/tests/encryption_test.go +++ b/tests/encryption_test.go @@ -42,7 +42,7 @@ var _ = Describe("kcrypt encryption", func() { err = vm.Scp(configFile.Name(), "config.yaml", "0744") Expect(err).ToNot(HaveOccurred()) - installationOutput, err = vm.Sudo("set -o pipefail && kairos-agent manual-install --device auto config.yaml 2>&1 | tee manual-install.txt") + installationOutput, err = vm.Sudo("/bin/bash -c 'set -o pipefail && kairos-agent manual-install --device auto config.yaml 2>&1 | tee manual-install.txt'") Expect(err).ToNot(HaveOccurred(), installationOutput) })