service/debugger: Fix checking for CI

This commit is contained in:
Derek Parker
2020-04-13 11:32:21 -07:00
committed by Alessandro Arzilli
parent e5d24a96bf
commit c06a1a0252
2 changed files with 2 additions and 1 deletions

View File

@ -61,6 +61,7 @@ script: >-
docker run \ docker run \
-v $(pwd):/delve \ -v $(pwd):/delve \
--env TRAVIS=true \ --env TRAVIS=true \
--env CI=true \
--privileged i386/centos:7 \ --privileged i386/centos:7 \
/bin/bash -c "set -x && \ /bin/bash -c "set -x && \
cd delve && \ cd delve && \

View File

@ -54,7 +54,7 @@ func TestDebugger_LaunchNoExecutablePerm(t *testing.T) {
} }
func TestDebugger_LaunchWithTTY(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 { if _, err := exec.LookPath("lsof"); err != nil {
t.Skip("skipping test in CI, system does not contain lsof") t.Skip("skipping test in CI, system does not contain lsof")
} }