Skip to content

Commit 4f426b7

Browse files
committed
(maint) Fail if puppetserver can't be started
By default, Beaker tests fail if they give a non-zero exit code. However, when starting puppetserver in the master setup presuite, the resource can fail and still return an exit code of 0. This commit updates the start puppetserver step to use the --fail option, which will return an exit code of 1 if the resource could not be modified.
1 parent b2ec88b commit 4f426b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acceptance/pre_suite/00_master_setup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@
7171
end
7272

7373
step 'Start puppetserver' do
74-
on(master, puppet('resource', 'service', master['puppetservice'], 'ensure=running', 'enable=true'))
74+
on(master, puppet('resource', 'service', master['puppetservice'], 'ensure=running', 'enable=true', '--fail'))
7575
end
7676
end

0 commit comments

Comments
 (0)