VirtualBox

Changeset 55818 in vbox


Ignore:
Timestamp:
May 12, 2015 10:00:06 AM (9 years ago)
Author:
vboxsync
Message:

ValidationKit: adapt to renamed API attribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r55082 r55818  
    99__copyright__ = \
    1010"""
    11 Copyright (C) 2010-2014 Oracle Corporation
     11Copyright (C) 2010-2015 Oracle Corporation
    1212
    1313This file is part of VirtualBox Open Source Edition (OSE), as
     
    17811781        else:
    17821782            reporter.log("  Session PID:        %u (%#x)" % (oVM.sessionPid, oVM.sessionPid));
    1783         reporter.log("  Session Type:       %s" % (oVM.sessionType));
     1783        if self.fpApiVer >= 5.0:
     1784            reporter.log("  Session Name:       %s" % (oVM.sessionName));
     1785        else:
     1786            reporter.log("  Session Name:       %s" % (oVM.sessionType));
    17841787        reporter.log("  CPUs:               %s" % (oVM.CPUCount));
    17851788        reporter.log("  RAM:                %sMB" % (oVM.memorySize));
     
    22202223        try:
    22212224            eCurState =             oVM.sessionState;
    2222             sCurType  = sOrgType  = oVM.sessionType;
     2225            if self.fpApiVer >= 5.0:
     2226                sCurName  = sOrgName  = oVM.sessionName;
     2227            else:
     2228                sCurName  = sOrgName  = oVM.sessionType;
    22232229            if self.fpApiVer >= 4.2:
    22242230                iCurPid   = iOrgPid   = oVM.sessionPID;
     
    22342240        msStart = base.timestampMilli();
    22352241        while iCurPid  == iOrgPid \
    2236           and sCurType == sOrgType \
    2237           and sCurType != '' \
     2242          and sCurName == sOrgName \
     2243          and sCurName != '' \
    22382244          and base.timestampMilli() - msStart < cMsTimeout \
    22392245          and (   eCurState == vboxcon.SessionState_Unlocking \
     
    22432249            try:
    22442250                eCurState = oVM.sessionState;
    2245                 sCurType  = oVM.sessionType;
     2251                sCurName  = oVM.sessionName if self.fpApiVer >= 5.0 else oVM.sessionType;
    22462252                iCurPid   = oVM.sessionPID if self.fpApiVer >= 4.2 else oVM.sessionPid;
    22472253            except Exception, oXcpt:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette