Skip to content

Commit

Permalink
Fix Windows Conformance failure by updating time synchronization scri…
Browse files Browse the repository at this point in the history
…pt (#6906)

fixes #6892

Signed-off-by: Shuyang Xin <[email protected]>
  • Loading branch information
XinShuYang authored Jan 15, 2025
1 parent 82d22b3 commit 71cd6e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/jenkins/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ function revert_snapshot_windows {
exit 1
fi
IP=${winVMIPs#*,}
# Since Windows cannot perform time synchronization when there is a significant time gap,
# we need to adjust the time based on the Linux time after reverting the snapshot to prevent time synchronization failures on Windows.
LinuxDate=$(date -d "$(date)" "+%Y-%m-%d %H:%M:%S")
ssh -o StrictHostKeyChecking=no -n Administrator@${IP} 'powershell.exe \"Set-Date -Date '$LinuxDate'\"'
# Windows VM is reverted to an old snapshot so computer date needs updating.
for i in `seq 24`; do
sleep 5
Expand Down

0 comments on commit 71cd6e0

Please sign in to comment.