summaryrefslogtreecommitdiff
path: root/integrationtests/dtail_test.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2021-10-19 19:01:12 +0300
committerPaul Buetow <pbuetow@mimecast.com>2021-10-19 19:03:03 +0300
commit860c41441b3bcf542b5701ae2257812879ce47b4 (patch)
tree9940e557b86e346cc3989c45e4f512f58dab850b /integrationtests/dtail_test.go
parent10314cef906fd9b73e003be69c2f6b7b3d66570c (diff)
Set DTAIL_RUN_INTEGRATIONT_TEST to yes for integration tests
Diffstat (limited to 'integrationtests/dtail_test.go')
-rw-r--r--integrationtests/dtail_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/integrationtests/dtail_test.go b/integrationtests/dtail_test.go
index 4af7401..c6d0107 100644
--- a/integrationtests/dtail_test.go
+++ b/integrationtests/dtail_test.go
@@ -7,9 +7,15 @@ import (
"strings"
"testing"
"time"
+
+ "github.com/mimecast/dtail/internal/config"
)
func TestDTailWithServer(t *testing.T) {
+ if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") {
+ t.Log("Skipping")
+ return
+ }
followFile := "dtail.follow.tmp"
greetings := []string{"world!", "sol-system!", "milky-way!", "universe!", "multiverse!"}
@@ -122,6 +128,10 @@ func TestDTailWithServer(t *testing.T) {
}
func TestDTailColorTable(t *testing.T) {
+ if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") {
+ t.Log("Skipping")
+ return
+ }
stdoutFile := "dtailcolortable.stdout.tmp"
expectedStdoutFile := "dtailcolortable.expected"