summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-04-04 11:50:26 -0700
committerGitHub <noreply@github.com>2020-04-04 11:50:26 -0700
commitc04b1b55a06bc9971fdecadf7fc44bf6260d87cc (patch)
tree3120bb48ab4783b261246781916d747ed795db52
parenta69e9f450bad3b7d1e133ce4649c9c4757d22bb9 (diff)
parent4149e1439bf15526cfa06b6bf53968f6d45d9f2d (diff)
downloadchef-c04b1b55a06bc9971fdecadf7fc44bf6260d87cc.tar.gz
Merge pull request #9592 from chef/btm/15-fix-windows-func-test
15: Use $env:temp instead of c:/ for functional tests
-rw-r--r--scripts/bk_tests/bk_win_functional.ps18
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