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:
Marek Marczykowski-Górecki 2018-10-14 05:48:25 +02:00
parent 9887b925b4
commit 3b6703f2bd
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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