diff options
author | mwrock <matt@mattwrock.com> | 2020-10-29 11:49:03 -0700 |
---|---|---|
committer | mwrock <matt@mattwrock.com> | 2020-10-29 11:49:03 -0700 |
commit | c43ab7a6e94116699dc0416965984413743b0548 (patch) | |
tree | 0d194e90cf109e3cb415d586d4460befc68ba03f | |
parent | e5f65a0c553f38775de42a178c952d6bfd6f0469 (diff) | |
download | chef-c43ab7a6e94116699dc0416965984413743b0548.tar.gz |
more troubleshooting windows plan
Signed-off-by: mwrock <matt@mattwrock.com>
-rw-r--r-- | habitat/tests/spec.ps1 | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/habitat/tests/spec.ps1 b/habitat/tests/spec.ps1 index 718a54da77..2d98de822a 100644 --- a/habitat/tests/spec.ps1 +++ b/habitat/tests/spec.ps1 @@ -19,14 +19,15 @@ try { hab pkg binlink --force $PackageIdentifier - Write-Host "Importing NetSecurity..." - Import-Module NetSecurity - - Write-Host "Importing PackageManagement..." - Import-Module PackageManagement - - # /hab/bin/rspec --format documentation --tag ~executables --tag ~choco_installed spec/functional - if (-not $?) { throw "functional testing failed"} + /hab/bin/rspec --format documentation --tag ~executables --tag ~choco_installed spec/functional + if (-not $?) { + Write-Host "Importing NetSecurity..." + Import-Module NetSecurity + + Write-Host "Importing PackageManagement..." + Import-Module PackageManagement + throw "functional testing failed" + } } finally { Pop-Location } |