diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-12-05 20:35:58 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-12-05 20:35:58 -0800 |
commit | acc234f2f01def0eec6272b3ae9bb9027272fd89 (patch) | |
tree | 809d7637554b9f6897122540f4519daf1273eb4a | |
parent | 3e54d025bd5a2754029897cc13175358a232e8a9 (diff) | |
download | chef-acc234f2f01def0eec6272b3ae9bb9027272fd89.tar.gz |
this works better right?
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/functional/resource/apt_package_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/functional/resource/apt_package_spec.rb b/spec/functional/resource/apt_package_spec.rb index 404426ec85..9a2451b533 100644 --- a/spec/functional/resource/apt_package_spec.rb +++ b/spec/functional/resource/apt_package_spec.rb @@ -106,6 +106,10 @@ describe Chef::Resource::AptPackage, metadata do include AptServer before(:all) do + if INeedSomeGlobalState.alreadyfailed + raise "aborting the rest of the apt-package func tests due to failure in the before block" + end + # Disable mixlib-shellout live streams Chef::Log.level = :warn start_apt_server @@ -118,7 +122,6 @@ describe Chef::Resource::AptPackage, metadata do # swallow the errors the second time (which unfortunately creates cascading errors which # have nothing to do with the problem), but the first time we throw the exception so # that debugging can hopefully proceeed. - pp INeedSomeGlobalState.alreadyfailed if !INeedSomeGlobalState.alreadyfailed INeedSomeGlobalState.alreadyfailed = true raise |