diff --git a/.travis.yml b/.travis.yml index 03119174..0230bfc5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,6 +61,7 @@ script: >- docker run \ -v $(pwd):/delve \ --env TRAVIS=true \ + --env CI=true \ --privileged i386/centos:7 \ /bin/bash -c "set -x && \ cd delve && \ diff --git a/service/debugger/debugger_unix_test.go b/service/debugger/debugger_unix_test.go index caa12c96..8592968c 100644 --- a/service/debugger/debugger_unix_test.go +++ b/service/debugger/debugger_unix_test.go @@ -54,7 +54,7 @@ func TestDebugger_LaunchNoExecutablePerm(t *testing.T) { } func TestDebugger_LaunchWithTTY(t *testing.T) { - if os.Getenv("TRAVIS") == "true" { + if os.Getenv("CI") == "true" { if _, err := exec.LookPath("lsof"); err != nil { t.Skip("skipping test in CI, system does not contain lsof") }