"fdts/stm32mp157a-dk1.dts" did not exist on "23684d0e819b497d2661759b315e43e267a3a74c"
jenkins_test.go 311 Bytes
Newer Older
Jeromy's avatar
Jeromy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package jenkins

import (
	"os"
	"strings"
	"testing"
)

func TestIsRunning(t *testing.T) {
	hasPrefix := strings.HasPrefix(os.Getenv("BUILD_TAG"), "jenkins-")
	tr := len(os.Getenv("JENKINS_URL")) > 0 || hasPrefix

	if tr != IsRunning() {
		t.Error("IsRunning() does not match TRAVIS && CI env var check")
	}
}