Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #624 from bbuchalter/fail_on_db_setup_2
Browse files Browse the repository at this point in the history
Fix non-zero exit code for redeploy-internal-db
  • Loading branch information
Shlomi Noach authored Oct 7, 2018
2 parents 8eeebb9 + 1509974 commit 9b55a34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go/app/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,10 @@ func Cli(command string, strict bool, instance string, destination string, owner
case registerCliCommand("redeploy-internal-db", "Meta, internal", `Force internal schema migration to current backend structure`):
{
config.RuntimeCLIFlags.ConfiguredVersion = ""
inst.ReadClusters()
_, err := inst.ReadClusters()
if err != nil {
log.Fatale(err)
}
fmt.Println("Redeployed internal db")
}
case registerCliCommand("internal-suggest-promoted-replacement", "Internal", `Internal only, used to test promotion logic in CI`):
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ deploy_internal_db() {
bash $exec_command_file 1> $test_outfile 2> $test_logfile
if [ $? -ne 0 ] ; then
echo "ERROR deploy internal db failed"
cat $test_logfile
return 1
fi
echo "- deploy_internal_db result: $?"
Expand Down

0 comments on commit 9b55a34

Please sign in to comment.