Skip to content

Commit

Permalink
RHELMISC-8207: Workaround NdisStudio tests fail with date and NTP
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Chulak <[email protected]>
  • Loading branch information
Jedoku committed Jan 20, 2025
1 parent e542404 commit 416174d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions lib/engines/hcktest/hcktest.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,47 @@
"value": "161"
}
]
},
{
"tests": [
"[NdisStudio] NdisPoll keyword functional validation",
"[NdisStudio] OidRequestTest - OID_GEN_VENDOR_DRIVER_VERSION Verification",
"[NdisStudio] NdisPoll keyword validation",
"[NdisStudio] OidRequestTest - OID_GEN_XMIT_OK and OID_GEN_RCV_OK Verification",
"[NdisStudio] OidRequestTest - OID_GEN_VENDOR_ID Verification"
],
"pre_test_commands": [
{
"desc": "Disable NTP service startup",
"guest_run": "Set-Service -Name w32time -StartupType Disabled"
},
{
"desc": "Disable NTP service",
"guest_run": "Stop-Service w32time"
},
{
"desc": "Set date to January 1st 2024",
"guest_run": "Set-Date '2024-01-01'"
}
],
"post_test_commands": [
{
"desc": "Enable NTP service startup",
"guest_run": "Set-Service -Name w32time -StartupType Automatic"
},
{
"desc": "Enable NTP service",
"guest_run": "Start-Service w32time"
},
{
"desc": "Force time sync",
"guest_run": "w32tm /resync /force"
},
{
"desc": "Verify date is not January 2024",
"guest_run": "if ((Get-Date).Month -eq 1 -and (Get-Date).Year -eq 2024) { exit 1 } else { exit 0 }"
}
]
}
]
}

0 comments on commit 416174d

Please sign in to comment.