diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/gotoolchain.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/gotoolchain.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/gotoolchain.py b/meta/lib/oeqa/selftest/cases/gotoolchain.py index 4fc3605f42..ee2cf4b09a 100644 --- a/meta/lib/oeqa/selftest/cases/gotoolchain.py +++ b/meta/lib/oeqa/selftest/cases/gotoolchain.py | |||
@@ -1,4 +1,6 @@ | |||
1 | # | 1 | # |
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
2 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
3 | # | 5 | # |
4 | 6 | ||
@@ -50,6 +52,9 @@ class oeGoToolchainSelfTest(OESelftestTestCase): | |||
50 | cmd = "cd %s/src/%s/%s; " % (self.go_path, proj, name) | 52 | cmd = "cd %s/src/%s/%s; " % (self.go_path, proj, name) |
51 | cmd = cmd + ". %s; " % self.env_SDK | 53 | cmd = cmd + ". %s; " % self.env_SDK |
52 | cmd = cmd + "export GOPATH=%s; " % self.go_path | 54 | cmd = cmd + "export GOPATH=%s; " % self.go_path |
55 | cmd = cmd + "export GOFLAGS=-modcacherw; " | ||
56 | cmd = cmd + "export CGO_ENABLED=1; " | ||
57 | cmd = cmd + "export GOPROXY=https://proxy.golang.org,direct; " | ||
53 | cmd = cmd + "${CROSS_COMPILE}go %s" % gocmd | 58 | cmd = cmd + "${CROSS_COMPILE}go %s" % gocmd |
54 | return runCmd(cmd).status | 59 | return runCmd(cmd).status |
55 | 60 | ||