diff options
author | Robb Kidd <robb@thekidds.org> | 2019-11-04 16:24:29 -0500 |
---|---|---|
committer | Robb Kidd <robb@thekidds.org> | 2019-11-05 14:54:24 -0500 |
commit | 8be16a680452d7da054a75446e64946f4f994788 (patch) | |
tree | 6a8f1d7ca56a83247f12de8931ee67aa12e8c1c7 /habitat | |
parent | 3e08360011f43b8d97fec69bcfa20fbcdc61383a (diff) | |
download | chef-8be16a680452d7da054a75446e64946f4f994788.tar.gz |
because we're binlinking, ensure \hab\bin is in the PATH
Test hosts haven't necessarily had "hab setup" run for \hab\bin to be on
the system PATH. For the purposes on this test, we would like that to be
the case. So, put Hab's bin directory at the start of the PATH and carry
on.
Signed-off-by: Robb Kidd <robb@thekidds.org>
Diffstat (limited to 'habitat')
-rw-r--r-- | habitat/tests/spec.ps1 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/habitat/tests/spec.ps1 b/habitat/tests/spec.ps1 index 5108b6d554..ab1656b221 100644 --- a/habitat/tests/spec.ps1 +++ b/habitat/tests/spec.ps1 @@ -9,9 +9,10 @@ winrm quickconfig -quiet $chef_gem_root = (hab pkg exec $PackageIdentifier gem.cmd which chef | Split-Path | Split-Path) try { Push-Location $chef_gem_root + $env:PATH = "C:\hab\bin;$env:PATH" hab pkg binlink --force $PackageIdentifier /hab/bin/rspec --format progress --tag ~executables --tag ~choco_installed spec/functional if (-not $?) { throw "functional testing failed"} } finally { Pop-Location -}
\ No newline at end of file +} |