]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
changes: tests: remove output for dry-run commands
authorSimon Ruderich <simon@ruderich.org>
Sun, 9 May 2021 10:39:30 +0000 (12:39 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 9 May 2021 13:18:45 +0000 (15:18 +0200)
Commands during a dry-run have no output. Don't use incorrect test
input.

cmd/safcm/sync_changes_test.go

index d8ce97b2a876ea45c2d18d5d78f0959eb2e1fe17..febb7847edf600e43541294a81d8cd96864deaa5 100644 (file)
@@ -1036,13 +1036,10 @@ func TestFormatCommandChanges(t *testing.T) {
                        []safcm.CommandChange{
                                {
                                        Command: "fake command",
-                                       Output:  "fake output",
                                },
                        },
                        `executed 1 command(s): (dry-run)
-"fake command":
-   > fake output
-   > \ No newline at end of file
+"fake command"
 `,
                },
 
@@ -1054,10 +1051,9 @@ func TestFormatCommandChanges(t *testing.T) {
                        []safcm.CommandChange{
                                {
                                        Command: "fake command",
-                                       Output:  "fake output",
                                },
                        },
-                       "executed 1 command(s): (dry-run)\n\x1b[36m\"fake command\"\x1b[0m:\n   > fake output\n   > \\ No newline at end of file\n",
+                       "executed 1 command(s): (dry-run)\n\x1b[36m\"fake command\"\x1b[0m\n",
                },
 
                {