Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
whitehawk committed Aug 7, 2024
1 parent 7102051 commit be1b0c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions end_to_end/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ var _ = Describe("End to End plugin tests", func() {
"Instruct plugin to fail",
cluster.ON_HOSTS,
func(contentID int) string {
return fmt.Sprintf("touch /tmp/GPBACKUP_PLUGIN_FAIL")
return fmt.Sprintf("touch /tmp/GPBACKUP_PLUGIN_KILL_HELPER")
})

gprestoreCmd := exec.Command(gprestorePath,
Expand All @@ -355,7 +355,7 @@ var _ = Describe("End to End plugin tests", func() {
"Unset plugin failure",
cluster.ON_HOSTS,
func(contentID int) string {
return fmt.Sprintf("rm /tmp/GPBACKUP_PLUGIN_FAIL")
return fmt.Sprintf("rm /tmp/GPBACKUP_PLUGIN_KILL_HELPER")
})

assertArtifactsCleaned(timestamp)
Expand Down
3 changes: 1 addition & 2 deletions plugins/example_plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ restore_data() {
timestamp_day_dir=${timestamp_dir%??????}
if [ -e "/tmp/GPBACKUP_PLUGIN_LOG_TO_STDERR" ] ; then
echo 'Some plugin warning' >&2
elif [ -e "/tmp/GPBACKUP_PLUGIN_FAIL" ] ; then
elif [ -e "/tmp/GPBACKUP_PLUGIN_KILL_HELPER" ] ; then
pkill "gpbackup_helper"
exit 1
elif [ -e "/tmp/GPBACKUP_PLUGIN_DIE" ] ; then
exit 1
fi
Expand Down

0 comments on commit be1b0c6

Please sign in to comment.