We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b949745 commit 0790a84Copy full SHA for 0790a84
spec/acceptance/apt_backports_spec.rb
@@ -6,11 +6,11 @@
6
context 'update_had_no_effect script' do
7
let(:pp) do
8
<<-MANIFEST
9
- exec { 'Test the script':
10
- command => epp('apt/update_had_no_effect.sh.epp'),
11
- logoutput => true,
+ exec { 'apt_update':
+ command => 'echo apt updated the package cache.',
+ logoutput => on_failure,
12
provider => shell,
13
- returns => [0, 1],
+ unless => epp('apt/update_had_no_effect.sh.epp'),
14
}
15
MANIFEST
16
end
0 commit comments