summaryrefslogtreecommitdiff
path: root/integrationtests/dcat_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests/dcat_test.go')
-rw-r--r--integrationtests/dcat_test.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/integrationtests/dcat_test.go b/integrationtests/dcat_test.go
index 2516867..777e835 100644
--- a/integrationtests/dcat_test.go
+++ b/integrationtests/dcat_test.go
@@ -17,7 +17,7 @@ func TestDCat(t *testing.T) {
stdoutFile := "dcat.out"
_, err := runCommand(context.TODO(), t, stdoutFile,
- "../dcat", "--spartan", testdataFile)
+ "../dcat", "--spartan", "--cfg", "none", testdataFile)
if err != nil {
t.Error(err)
@@ -40,14 +40,15 @@ func TestDCat2(t *testing.T) {
expectedFile := "dcat2.txt.expected"
stdoutFile := "dcat2.out"
- args := []string{"--spartan", "--logLevel", "error"}
+ args := []string{"--spartan", "--logLevel", "error", "--cfg", "none"}
// Cat file 100 times in one session.
for i := 0; i < 100; i++ {
args = append(args, testdataFile)
}
- if _, err := runCommand(context.TODO(), t, stdoutFile, "../dcat", args...); err != nil {
+ _, err := runCommand(context.TODO(), t, stdoutFile, "../dcat", args...)
+ if err != nil {
t.Error(err)
return
}
@@ -60,19 +61,17 @@ func TestDCat2(t *testing.T) {
os.Remove(stdoutFile)
}
-/*
-// TODO: The test currently fails as there is a hostname in the output. What needs
-// to be done is to ignore the hostnames in the output (which is field 2 of the output)
func TestDCatColors(t *testing.T) {
if !config.Env("DTAIL_RUN_INTEGRATION_TESTS") {
return
}
+
testdataFile := "dcatcolors.txt"
stdoutFile := "dcatcolors.out"
expectedFile := "dcatcolors.expected"
_, err := runCommand(context.TODO(), t, stdoutFile,
- "../dcat", "--logLevel", "error", testdataFile)
+ "../dcat", "--logLevel", "error", "--cfg", "none", testdataFile)
if err != nil {
t.Error(err)
@@ -86,4 +85,3 @@ func TestDCatColors(t *testing.T) {
os.Remove(stdoutFile)
}
-*/