Commit 04708b2
committed
test(snapshot): verify guest clock advances after cross-kernel restore
Sample guest time twice and assert it advanced by roughly the sleep
duration. Comparing guest time to host time doesn't work here: phase1
and restore run as separate pipeline steps with elapsed time between
them, and snapshot restore preserves the guest's KVM-clock from capture
time. Sampling twice still catches what we care about - the clock being
frozen, going backwards, or running at the wrong rate - which is how
KVM-clock regressions across host kernels manifest.
Signed-off-by: Jack Thomson <jackabt@amazon.com>1 parent cdc4bd3 commit 04708b2
1 file changed
Lines changed: 18 additions & 0 deletions
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
30 | 45 | | |
31 | 46 | | |
32 | 47 | | |
| |||
129 | 144 | | |
130 | 145 | | |
131 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
132 | 150 | | |
0 commit comments