VirtualBox

Changeset 107196 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Nov 29, 2024 3:42:15 PM (7 weeks ago)
Author:
vboxsync
Message:

testdriver/vbox.py: Added getGuestAdditionsRevision().

File:
1 edited

Legend:

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

    r106981 r107196  
    18471847            if not fIgnoreErrors:
    18481848                reporter.errorXcpt('Getting the Guest Additions version failed');
     1849        return None;
     1850
     1851    def getGuestAdditionsRevision(self, oSession, fIgnoreErrors = False):
     1852        """
     1853        Returns the installed Guest Additions (SVN) revision.
     1854
     1855        Returns revision as a string (e.g. "123456"), or None if not found / on error.
     1856        """
     1857        assert oSession is not None;
     1858        try:
     1859            return oSession.o.console.guest.getAdditionsRevision;
     1860        except:
     1861            if not fIgnoreErrors:
     1862                reporter.errorXcpt('Getting the Guest Additions revision failed');
    18491863        return None;
    18501864
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