Merge pull request #1518 from shirou/feature/remove_circleci
chore: change CIRCLECI environment variable to CI.
This commit is contained in:
commit
faad806080
|
@ -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…
Reference in New Issue