mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #26136 from hashicorp/alisdair/fix-providercache-test-failures-on-macOS
internal: Fix providercache test failures on macOS
This commit is contained in:
commit
a176aaa4da
@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/apparentlymart/go-versions/versions"
|
"github.com/apparentlymart/go-versions/versions"
|
||||||
@ -19,6 +20,10 @@ func TestInstallPackage(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
defer os.RemoveAll(tmpDirPath)
|
defer os.RemoveAll(tmpDirPath)
|
||||||
|
tmpDirPath, err = filepath.EvalSymlinks(tmpDirPath)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
linuxPlatform := getproviders.Platform{
|
linuxPlatform := getproviders.Platform{
|
||||||
OS: "linux",
|
OS: "linux",
|
||||||
@ -74,6 +79,10 @@ func TestLinkFromOtherCache(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
defer os.RemoveAll(tmpDirPath)
|
defer os.RemoveAll(tmpDirPath)
|
||||||
|
tmpDirPath, err = filepath.EvalSymlinks(tmpDirPath)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
windowsPlatform := getproviders.Platform{
|
windowsPlatform := getproviders.Platform{
|
||||||
OS: "windows",
|
OS: "windows",
|
||||||
|
Loading…
Reference in New Issue
Block a user