diff options
author | Bryan McLellan <btm@loftninjas.org> | 2020-04-03 16:06:18 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2020-04-03 17:37:08 -0400 |
commit | 4149e1439bf15526cfa06b6bf53968f6d45d9f2d (patch) | |
tree | 7e5e1326b5c209e6b5312ae458be90043b75d9a3 | |
parent | b39a07d8329d4805edc1eb2e765e98ed88e6be41 (diff) | |
download | chef-4149e1439bf15526cfa06b6bf53968f6d45d9f2d.tar.gz |
Use $env:temp instead of c:/btm/15-fix-windows-func-test
The drive root has more restrictive permissions
Signed-off-by: Bryan McLellan <btm@loftninjas.org>
-rw-r--r-- | scripts/bk_tests/bk_win_functional.ps1 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/bk_tests/bk_win_functional.ps1 b/scripts/bk_tests/bk_win_functional.ps1 index bd262fed9c..12bb72c9ba 100644 --- a/scripts/bk_tests/bk_win_functional.ps1 +++ b/scripts/bk_tests/bk_win_functional.ps1 @@ -9,13 +9,13 @@ echo "--- install ruby + devkit" $ErrorActionPreference = 'Stop' echo "Downloading Ruby + DevKit" -aws s3 cp s3://public-cd-buildkite-cache/rubyinstaller-devkit-2.6.5-1-x64.exe c:/rubyinstaller-devkit-2.6.5-1-x64.exe +aws s3 cp s3://public-cd-buildkite-cache/rubyinstaller-devkit-2.6.5-1-x64.exe $env:temp/rubyinstaller-devkit-2.6.5-1-x64.exe echo "Installing Ruby + DevKit" -Start-Process c:\rubyinstaller-devkit-2.6.5-1-x64.exe -ArgumentList '/verysilent /dir=C:\\ruby26' -Wait +Start-Process $env:temp\rubyinstaller-devkit-2.6.5-1-x64.exe -ArgumentList '/verysilent /dir=C:\\ruby26' -Wait echo "Cleaning up installation" -Remove-Item c:\rubyinstaller-devkit-2.6.5-1-x64.exe -Force +Remove-Item $env:temp\rubyinstaller-devkit-2.6.5-1-x64.exe -Force echo "Closing out the layer (this can take awhile)" # Set-Item -Path Env:Path -Value to include ruby26 @@ -33,4 +33,4 @@ bundle install --jobs=3 --retry=3 --without omnibus_package docgen chefstyle echo "+++ bundle exec rake spec:functional" bundle exec rake spec:functional -exit $LASTEXITCODE
\ No newline at end of file +exit $LASTEXITCODE |