Add debugging statement

Signed-off-by: poorndm <poorndm@progress.com>
This commit is contained in:
poorndm 2024-11-18 18:26:14 +05:30
parent 43a8d94841
commit c1bdb49952

View file

@ -7,6 +7,20 @@ $Env:PATH = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";
$Env:Path = "C:\opscode\inspec\bin;C:\opscode\inspec\embedded\bin;$Env:PATH"
Write-Host "+++ Testing $Plan"
# *********Debugging ***************
Write-Host ":ruby: Validating Ruby can run"
& $embedded_bin_dir\ruby --version
If ($lastexitcode -ne 0) { Throw $lastexit
Write-Host ":bundler: Validating Bundler can run"
& $embedded_bin_dir\bundle.bat --version
If ($lastexitcode -ne 0) { Throw $lastexitcode }
Write-Host ":lock: Validating OpenSSL can run"
$version=(&"$embedded_bin_dir\openssl.exe" version)
If ($lastexitcode -ne 0) { Throw $lastexitcode }
Set-Location test/artifact
rake
If ($lastexitcode -ne 0) { Throw $lastexitcode }