From f76f67acb2531312d3cc600568ab923dc7e203f8 Mon Sep 17 00:00:00 2001 From: Shital Savekar Date: Mon, 15 Jan 2018 02:43:21 -0800 Subject: [PATCH] Added a mandatory reboot to provision test. --- .../BVT-VERIFY-DEPLOYMENT-PROVISION.ps1 | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/remote-scripts/BVT-VERIFY-DEPLOYMENT-PROVISION.ps1 b/remote-scripts/BVT-VERIFY-DEPLOYMENT-PROVISION.ps1 index 79a6c18..d6ccd0d 100644 --- a/remote-scripts/BVT-VERIFY-DEPLOYMENT-PROVISION.ps1 +++ b/remote-scripts/BVT-VERIFY-DEPLOYMENT-PROVISION.ps1 @@ -11,14 +11,23 @@ if ($isDeployed) try { - LogMsg "Test Result : PASS." - $testResult = "PASS" + $RestartStatus = RestartAllDeployments -allVMData $allVMData + if($RestartStatus -eq "True") + { + LogMsg "Test Result : PASS." + $testResult = "PASS" + } + else + { + LogMsg "Test Result : FAIL." + $testResult = "FAIL" + } } catch { $ErrorMessage = $_.Exception.Message - LogMsg "EXCEPTION : $ErrorMessage" + LogMsg "EXCEPTION : $ErrorMessage" } Finally { @@ -29,7 +38,7 @@ if ($isDeployed) } $resultArr += $testResult #$resultSummary += CreateResultSummary -testResult $testResult -metaData $metaData -checkValues "PASS,FAIL,ABORTED" -testName $currentTestData.testName# if you want to publish all result then give here all test status possibilites. if you want just failed results, then give here just "FAIL". You can use any combination of PASS FAIL ABORTED and corresponding test results will be published! - } + } } else