Skip to content

Commit 5751bc7

Browse files
committed
Update expected output for a machine copy test
The podman machine copy test "attempt copying file to a new directory" was failing because on recent version of Windows the error message doesn't match the expected error message. To make it work on new and old version of Windows both old and new error messages are now considered as valid. Fixes #26056 Signed-off-by: Mario Loriedo <[email protected]>
1 parent fba6641 commit 5751bc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/machine/e2e/cp_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ var _ = Describe("run cp commands", func() {
357357
switch runtime.GOOS {
358358
case "windows":
359359
hostDirPath = filepath.ToSlash(hostDirPath)
360-
fallthrough
360+
Expect(session.errorToString()).To(Or(ContainSubstring(fmt.Sprintf("scp: open local \"%s\": No such file or directory", hostDirPath)),
361+
ContainSubstring(fmt.Sprintf("scp: open local \"%s\": Unknown error", hostDirPath))))
361362
case "darwin":
362363
Expect(session.errorToString()).To(ContainSubstring(fmt.Sprintf("scp: open local \"%s\": No such file or directory", hostDirPath)))
363364
case "linux":

0 commit comments

Comments
 (0)