chore: change CIRCLECI environment variable to CI.

pull/1518/head
shirou 2 years ago
parent a09263d9e8
commit febdeab871

@ -138,8 +138,8 @@ func testCPUPercent(t *testing.T, percpu bool) {
if err != nil {
t.Errorf("error %v", err)
}
// Skip CircleCI which CPU num is different
if os.Getenv("CIRCLECI") != "true" {
// Skip CI which CPU num is different
if os.Getenv("CI") != "true" {
if (percpu && len(v) != numcpu) || (!percpu && len(v) != 1) {
t.Fatalf("wrong number of entries from CPUPercent: %v", v)
}
@ -172,8 +172,8 @@ func testCPUPercentLastUsed(t *testing.T, percpu bool) {
if err != nil {
t.Errorf("error %v", err)
}
// Skip CircleCI which CPU num is different
if os.Getenv("CIRCLECI") != "true" {
// Skip CI which CPU num is different
if os.Getenv("CI") != "true" {
if (percpu && len(v) != numcpu) || (!percpu && len(v) != 1) {
t.Fatalf("wrong number of entries from CPUPercent: %v", v)
}

@ -33,7 +33,7 @@ func TestHostInfo(t *testing.T) {
}
func TestUptime(t *testing.T) {
if os.Getenv("CIRCLECI") == "true" {
if os.Getenv("CI") == "true" {
t.Skip("Skip CI")
}
@ -48,7 +48,7 @@ func TestUptime(t *testing.T) {
}
func TestBoot_time(t *testing.T) {
if os.Getenv("CIRCLECI") == "true" {
if os.Getenv("CI") == "true" {
t.Skip("Skip CI")
}
v, err := BootTime()

@ -502,7 +502,7 @@ func Test_Process_CpuPercentLoop(t *testing.T) {
}
func Test_Process_CreateTime(t *testing.T) {
if os.Getenv("CIRCLECI") == "true" {
if os.Getenv("CI") == "true" {
t.Skip("Skip CI")
}

Loading…
Cancel
Save