Skip to content

Commit 428bf01

Browse files
committed
CI: Fail if foreman db cannot be dropped
This will lead to followup errors, so we shouldn't swallow the error. This command is supposed to pass always.
1 parent b4ffe05 commit 428bf01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/support/acceptance/purge.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ def purge_foreman
1010

1111
apache_service_name = ['debian', 'ubuntu'].include?(os[:family]) ? 'apache2' : 'httpd'
1212
on default, "systemctl stop #{apache_service_name} dynflow-sidekiq@* foreman foreman-proxy", { :acceptable_exit_codes => [0, 5] }
13-
on default, 'runuser - postgres -c "dropdb --force foreman"', { :acceptable_exit_codes => [0, 1, 127] }
13+
on default, 'runuser - postgres -c "dropdb --if-exists --force foreman"', { :acceptable_exit_codes => [0] }
1414
end

0 commit comments

Comments
 (0)