X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=cmd%2Fsafcm%2Fsync_changes_test.go;h=219373c9522e4edfba458d3dd410b306c7ccdb06;hp=feb8dd34531f007072b391fbc11b82b1e05d3a50;hb=6f7b878074e898edc4942117d590f51d79a4d009;hpb=d55ef7c893c249eefafc24758c91a86c067778f5 diff --git a/cmd/safcm/sync_changes_test.go b/cmd/safcm/sync_changes_test.go index feb8dd3..219373c 100644 --- a/cmd/safcm/sync_changes_test.go +++ b/cmd/safcm/sync_changes_test.go @@ -1083,7 +1083,7 @@ func TestFormatCommandChanges(t *testing.T) { Error: "fake error", }, }, - `executed 5 command(s), 1 with no output: + `executed 5 command(s), 1 with no output (hidden): "fake command": > fake output > \ No newline at end of file @@ -1126,7 +1126,7 @@ func TestFormatCommandChanges(t *testing.T) { Error: "fake error", }, }, - "executed 5 command(s), 1 with no output:\n\x1b[36m\"fake command\"\x1b[0m:\n > fake output\n > \\ No newline at end of file\n\x1b[36m\"fake command with newline\"\x1b[0m:\n > fake output\n\x1b[36m\"fake command with more output\"\x1b[0m:\n > fake out\n > fake put\n > fake\n\x1b[36m\"fake failed command\"\x1b[0m, failed: \"fake error\":\n > fake output\n > \\ No newline at end of file\n", + "executed 5 command(s), 1 with no output (hidden):\n\x1b[36m\"fake command\"\x1b[0m:\n > fake output\n > \\ No newline at end of file\n\x1b[36m\"fake command with newline\"\x1b[0m:\n > fake output\n\x1b[36m\"fake command with more output\"\x1b[0m:\n > fake out\n > fake put\n > fake\n\x1b[36m\"fake failed command\"\x1b[0m, failed: \"fake error\":\n > fake output\n > \\ No newline at end of file\n", }, { @@ -1142,7 +1142,7 @@ func TestFormatCommandChanges(t *testing.T) { Command: "fake command with no output", }, }, - `executed 2 command(s), 2 with no output + `executed 2 command(s), 2 with no output (hidden) `, }, @@ -1160,7 +1160,7 @@ func TestFormatCommandChanges(t *testing.T) { Command: "fake command with no output", }, }, - `executed 2 command(s), 1 with no output: + `executed 2 command(s), 1 with no output (hidden): "fake command with no output but error", failed: "fake error" `, },