summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-04-04 11:50:48 -0700
committerGitHub <noreply@github.com>2020-04-04 11:50:48 -0700
commit3169ce7739d339e80af636da7fc548f888a2b0ce (patch)
treea06f2f0233b2c952c2e2938beca390d086af5bd2
parentdd0ffd20b132adafc4a37c34fc384ba62c710684 (diff)
parent697dd67554a8eb7cb79d840d4e86fbe5ebf90d9c (diff)
downloadchef-3169ce7739d339e80af636da7fc548f888a2b0ce.tar.gz
Merge pull request #9591 from chef/btm/fix-windows-func-test
Use $env:temp instead of c:/ for functional tests
-rw-r--r--scripts/bk_tests/bk_win_functional.ps16
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/bk_tests/bk_win_functional.ps1 b/scripts/bk_tests/bk_win_functional.ps1
index bcb6b116c8..6033812388 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 -ErrorAction SilentlyContinue
+Remove-Item $env:temp\rubyinstaller-devkit-2.6.5-1-x64.exe -Force -ErrorAction SilentlyContinue
echo "Closing out the layer (this can take awhile)"
# Set-Item -Path Env:Path -Value to include ruby26