mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Fix PATH env var in new omnibus test scripts
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
This commit is contained in:
parent
29bec90b1b
commit
d7b671e395
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue