Fix PATH env var in new omnibus test scripts

Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
This commit is contained in:
Jeremiah Snapp 2019-04-05 11:57:47 -04:00
parent 29bec90b1b
commit d7b671e395
2 changed files with 2 additions and 4 deletions

View file

@ -29,8 +29,7 @@ Start-Process "$package_file" /quiet -Wait
Write-Output "--- Testing $channel $product $version"
$INSTALL_DIR = "C:\opscode\inspec"
$Env:PATH = "${INSTALL_DIR};${Env:PATH}"
$Env:PATH = "C:\opscode\inspec\bin;${Env:PATH}"
Write-Output "Running verification for $product"
@ -39,5 +38,4 @@ Write-Output "Running verification for $product"
$Env:GEM_HOME = "C:\SHOULD_NOT_EXIST"
$Env:GEM_PATH = "C:\SHOULD_NOT_EXIST"
Set-Location -Path C:\opscode\inspec\bin
inspec version

View file

@ -14,7 +14,7 @@ check-omnibus-package-signed "$package_file"
echo "--- Testing $channel $product $version"
export INSTALL_DIR=/opt/inspec
export PATH=/opt/inspec/bin:$PATH
export PATH="/opt/inspec/bin:$PATH"
echo "Verifying ownership of package files"