tests: fix race condition in gui_memory_pinning test
Don't rely on top update timing, pause it updates for taking screenshots.
This commit is contained in:
parent
9887b925b4
commit
3b6703f2bd
@ -1142,6 +1142,9 @@ int main(int argc, char **argv) {
|
||||
# wait for damage notify - top updates every 3 sec by default
|
||||
yield from asyncio.sleep(6)
|
||||
|
||||
# stop changing the window content
|
||||
subprocess.check_call(['xdotool', 'key', '--window', winid, 'd'])
|
||||
|
||||
# now take screenshot of the window, from dom0 and VM
|
||||
# choose pnm format, as it doesn't have any useless metadata - easy
|
||||
# to compare
|
||||
|
Loading…
Reference in New Issue
Block a user