data = "@echo off\n%s\n" % (string.replace(self.cmdline,
"%s",
self.workdir))
- if self.guest.xmlrpcFileExists("c:\\~1\\alluse~1\\startm~1\\programs\\startup"):
- startupPath = "c:\\~1\\alluse~1\\startm~1\\programs\\startup"
+ if self.guest.xmlrpcFileExists("c:\\docume~1\\alluse~1\\startm~1\\programs\\startup"):
+ startupPath = "c:\\docume~1\\alluse~1\\startm~1\\programs\\startup"
elif self.guest.xmlrpcFileExists("c:\\programData\\microsoft\\windows\\start menu\\programs\\startup"):
startupPath = "c:\\programData\\microsoft\\windows\\start menu\\programs\\startup"
else:
# If it's shutdown, start it so we try and collect logs
if self.guest and self.guest.getState() == "DOWN":
xenrt.TEC().logverbose("Attempting to start guest for log collection")
+ val = max(self.minSupported, 1024)
+ self.guest.setMemoryProperties(None, val, val, val)
try:
self.guest.start()
except:
#(ranging from too busy, crashed guest, malicious guest, buggy balloon driver)
#then the product marks the guest as uncooperative
#Check for uncooperative tag, if found shut down the VM, print the details and proceed with the test
- elif "Target not reached within timeout" in str(e):
- res = self.host.execdom0("xenstore-ls -pf | grep memory | grep -E 'uncoop'")
- if res and "uncooperative" in res:
- log("Caught failure: %s" % str(e))
- log("Guest marked uncooperative")
- log("Shut down the guest")
- try:
- self.guest.shutdown(force=True)
- except:
- pass
- raise
- else:
- raise
- else:
- raise
+ res = self.host.execdom0("xenstore-ls -pf | grep memory | grep -E 'uncoop'")
+ if res and "uncooperative" in res:
+ log("Caught failure: %s" % str(e))
+ log("Guest marked uncooperative")
+ log("Shut down the guest")
+ try:
+ self.guest.shutdown(force=True)
+ except:
+ pass
+ raise
def testMaxRange(self, minMem, maxMem):
step("Set dynamic-min=dynamic-max=min, static-max=max")