This is an automated email from the ASF dual-hosted git repository.

tuhaihe pushed a commit to branch REL_2_STABLE
in repository https://gitbox.apache.org/repos/asf/cloudberry-backup.git

commit aa98ae5a6eec5fdbc073526577e1a8c2fdcd3b18
Author: woblerr <[email protected]>
AuthorDate: Sun Mar 22 15:36:42 2026 +0300

    Add gpbackman path setup and skip condition for old backup version tests.
---
 end_to_end/end_to_end_suite_test.go | 1 +
 end_to_end/gpbackman_test.go        | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/end_to_end/end_to_end_suite_test.go 
b/end_to_end/end_to_end_suite_test.go
index 2eed0150..6a71a0d6 100644
--- a/end_to_end/end_to_end_suite_test.go
+++ b/end_to_end/end_to_end_suite_test.go
@@ -559,6 +559,7 @@ options:
                oldBackupVersionStr := os.Getenv("OLD_BACKUP_VERSION")
 
                _, restoreHelperPath, gprestorePath = buildAndInstallBinaries()
+               gpbackmanPath = fmt.Sprintf("%s/go/bin/gpbackman", 
operating.System.Getenv("HOME"))
 
                // Precompiled binaries will exist when running the ci job, 
`backward-compatibility`
                if _, err := os.Stat(fmt.Sprintf("/tmp/%s", 
oldBackupVersionStr)); err == nil {
diff --git a/end_to_end/gpbackman_test.go b/end_to_end/gpbackman_test.go
index 6db59af4..488bf644 100644
--- a/end_to_end/gpbackman_test.go
+++ b/end_to_end/gpbackman_test.go
@@ -40,6 +40,11 @@ func isSeparatorLine(line string) bool {
 }
 
 var _ = Describe("gpbackman end to end tests", func() {
+       BeforeEach(func() {
+               if useOldBackupVersion {
+                       Skip("gpbackman tests are not applicable in old backup 
version mode")
+               }
+       })
 
        // ------------------------------------------------------------------ //
        //  backup-info


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to