aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/tests/create/12_create_concurrent_stress_pos.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/xm-test/tests/create/12_create_concurrent_stress_pos.py')
-rw-r--r--tools/xm-test/tests/create/12_create_concurrent_stress_pos.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/xm-test/tests/create/12_create_concurrent_stress_pos.py b/tools/xm-test/tests/create/12_create_concurrent_stress_pos.py
index 06b125083f..5235491d88 100644
--- a/tools/xm-test/tests/create/12_create_concurrent_stress_pos.py
+++ b/tools/xm-test/tests/create/12_create_concurrent_stress_pos.py
@@ -8,11 +8,18 @@ from XmTestLib import *
import time
DOMS=5
-MEM=32
+MEM=minSafeMem()
DUR=60
domains = []
+free_mem = int(getInfo("free_memory"))
+NUM_DOMS = int(free_mem / MEM)
+
+if NUM_DOMS < DOMS:
+ SKIP("Need %i MB of RAM to start %i@%iMB domains! (%i MB avail)" %
+ (DOMS * MEM, DOMS, MEM, free_mem))
+
for i in range(0,DOMS):
dom = XmTestDomain(extraConfig={"memory" : MEM})