summaryrefslogtreecommitdiff
path: root/tests/autotest-remote-server.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/autotest-remote-server.pl')
-rw-r--r--tests/autotest-remote-server.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/autotest-remote-server.pl b/tests/autotest-remote-server.pl
index a8410a1..811c3e8 100644
--- a/tests/autotest-remote-server.pl
+++ b/tests/autotest-remote-server.pl
@@ -25,3 +25,9 @@ close LOG;
$client->close();
$server->close();
+
+# wait for vm shutdown to decrease peak memory consumption
+while (`vboxmanage showvminfo $vm` !~ /State:\s+powered off/)
+{
+ sleep(1);
+}