From 0eb5ef4003d9cd4ba9995e67bf4a2ff04d367de9 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 13 Sep 2021 12:58:51 +0200 Subject: fix windows test by converting testdata files path --- repo_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/repo_test.go b/repo_test.go index 174c398..39556c6 100644 --- a/repo_test.go +++ b/repo_test.go @@ -320,9 +320,10 @@ func assertCompatibleRepoFile(t *testing.T, expected string, actual string, pref eFiles := loadFileList(expected) aFiles := loadFileList(actual) assertLen(t, len(eFiles), aFiles, prefix) - for i := 0; i < len(eFiles); i++ { - if eFiles[i] != aFiles[i] { - t.Fatal(prefix, "file entry do not match:", aFiles[i], ", expected:", eFiles[i]) + for i, eFile := range eFiles { + eFile.Path = filepath.FromSlash(eFile.Path) + if eFile != aFiles[i] { + t.Fatal(prefix, "file entry do not match:", aFiles[i], ", expected:", eFile) } } } else if filepath.Base(expected) == recipeName { -- cgit v1.2.3