-
Notifications
You must be signed in to change notification settings - Fork 5
/
CheckWHQLStatus.ps1
47 lines (41 loc) · 1.19 KB
/
CheckWHQLStatus.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##/***************************************
## Copyright (c) All rights reserved
##
## File: CheckWHQLStatus.ps1
##
## Authors (s)
##
## Mike Cao <[email protected]>
##
## This file is used to run check the status of test runs
##
## This work is licensed under the terms of the GNU GPL,Version 2.
##
##****************************************/
function local:GetScriptDirectory
{
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
Split-Path $Invocation.MyCommand.Path
}
. (Join-Path (GetScriptDirectory) "Library_HCK_MachinePoolAPI.ps1" )
. (Join-Path (GetScriptDirectory) "Library_WHQL_ENV_Parsing.ps1" )
$ObjectModel1 = LoadObjectModel "microsoft.windows.Kits.Hardware.objectmodel.dll"
$ObjectModel2 = LoadObjectModel "microsoft.windows.Kits.Hardware.objectmodel.dbconnection.dll"
function CheckWHQLStatus
{
GetXMLValues
GetKitValues
$Project = $Manager.GetProject($ProjectName)
$Project.GetTests() | foreach {
$_.GetTestResults() | foreach{
if($_.status -eq "Running")
{
Write-Host test name is $_.Name
Write-Host task status is $_.status
Write-Host Test is $_.Test.Name
Write-Host Test Target is $_.Target.DriverStatus
}
}
}
}
. CheckWHQLStatus