Merge pull request #4199 from fuweid/update-go-version-zuul

.zuul: update go version to 1.13.10
This commit is contained in:
Phil Estes 2020-04-23 14:35:10 -04:00 committed by GitHub
commit 5d4a9bae9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 17 deletions

View File

@ -1,21 +1,23 @@
- hosts: all
become: yes
roles:
- role: config-golang
arch: arm64
- role: config-golang
go_version: '1.13.10'
arch: arm64
tasks:
- name: Build containerd
shell:
cmd: |
set -xe
set -o pipefail
apt-get update
apt-get install -y btrfs-tools libseccomp-dev git pkg-config
- name: Build containerd
shell:
cmd: |
set -xe
set -o pipefail
apt-get update
apt-get install -y btrfs-tools libseccomp-dev git pkg-config
make | tee $LOGS_PATH/make.txt
make test | tee $LOGS_PATH/make_test.txt
go version
make | tee $LOGS_PATH/make.txt
make test | tee $LOGS_PATH/make_test.txt
cp -r ./bin $RESULTS_PATH
chdir: '{{ zuul.project.src_dir }}'
executable: /bin/bash
environment: '{{ global_env }}'
cp -r ./bin $RESULTS_PATH
chdir: '{{ zuul.project.src_dir }}'
executable: /bin/bash
environment: '{{ global_env }}'

View File

@ -24,11 +24,14 @@ import (
)
func TestRuntimeWithEmptyMaxEnvProcs(t *testing.T) {
var oldGoMaxProcs = runtime.GOMAXPROCS(0)
defer runtime.GOMAXPROCS(oldGoMaxProcs)
os.Setenv("GOMAXPROCS", "")
setRuntime()
var oldGoMaxProcs = runtime.GOMAXPROCS(0)
if oldGoMaxProcs != 2 {
var currentGoMaxProcs = runtime.GOMAXPROCS(0)
if currentGoMaxProcs != 2 {
t.Fatal("the max number of procs should be 2")
}
}