mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 09:46:56 +08:00
service/debugger: Fix checking for CI
This commit is contained in:
committed by
Alessandro Arzilli
parent
e5d24a96bf
commit
c06a1a0252
@ -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 && \
|
||||
|
||||
@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user