Skip to content

Commit

Permalink
End_to_end: stop printing gpbackup/gprestore output
Browse files Browse the repository at this point in the history
The outputs end up flooding the screen when the tests are run.
  • Loading branch information
kyeap-vmware committed Feb 2, 2024
1 parent 92245fe commit 8a02587
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions end_to_end/end_to_end_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2022,8 +2022,7 @@ LANGUAGE plpgsql NO SQL;`)
gprestoreArgs = append(gprestoreArgs, "--include-schema", "schematwo")
}
gprestoreCmd := exec.Command(gprestorePath, gprestoreArgs...)
output, err := gprestoreCmd.CombinedOutput()
fmt.Println(string(output))
_, err := gprestoreCmd.CombinedOutput()
Expect(err).ToNot(HaveOccurred())

// check row counts
Expand Down Expand Up @@ -2058,8 +2057,7 @@ LANGUAGE plpgsql NO SQL;`)
"--backup-dir", extractDirectory,
"--resize-cluster",
"--on-error-continue")
incroutput, err := gprestoreincrCmd.CombinedOutput()
fmt.Println(string(incroutput))
_, err := gprestoreincrCmd.CombinedOutput()
Expect(err).ToNot(HaveOccurred())

// check row counts
Expand Down Expand Up @@ -2144,8 +2142,7 @@ LANGUAGE plpgsql NO SQL;`)
"--on-error-continue"}

gprestoreCmd := exec.Command(gprestorePath, gprestoreArgs...)
output, err := gprestoreCmd.CombinedOutput()
fmt.Println(string(output))
_, err := gprestoreCmd.CombinedOutput()
Expect(err).ToNot(HaveOccurred())

// check row counts on each segment and on coordinator, expecting 1 table with 100 rows, replicated across all
Expand Down

0 comments on commit 8a02587

Please sign in to comment.