mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 12:47:22 +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 \
|
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 && \
|
||||||
|
|||||||
@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user