VirtualBox

Changeset 61595 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 8, 2016 8:31:49 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107937
Message:

testboxscript_real.py: Before I forget, make sure we report the tree revision to the testmanager and not the last time we changed the main source file.

Location:
trunk/src/VBox/ValidationKit/testboxscript
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/Makefile.kmk

    r60344 r61595  
    3737testboxscript_EXEC_SOURCES = \
    3838        testboxscript.py \
    39         testboxscript_real.py \
     39        $(testboxscript_0_OUTDIR)/testboxscript_real.py \
    4040        setup.sh
     41$(call VBOX_EDIT_VERSION_RULE_FN,testboxscript,testboxscript_real.py)
     42
    4143testboxscript_SOURCES = \
    4244        testboxcommand.py \
  • trunk/src/VBox/ValidationKit/testboxscript/testboxscript_real.py

    r61467 r61595  
    183183                self._ddSignOnParams[sItem][self.VALUE] = self._ddSignOnParams[sItem][self.FN]()
    184184
    185         testboxcommons.log('Starting Test Box script (%s)' % __version__)
     185        testboxcommons.log('Starting Test Box script (%s)' % (self._getScriptRev(),));
    186186        testboxcommons.log('Test Manager URL: %s' % self._oOptions.sTestManagerUrl,)
    187187        testboxcommons.log('Scratch root path: %s' % self._oOptions.sScratchRoot,)
     
    590590        The script (subversion) revision number.
    591591        """
    592         return __version__[11:-1].strip();
     592        sRev = '@VBOX_SVN_REV@';
     593        sRev = sRev.strip();            # just in case...
     594        try:
     595            _ = int(sRev);
     596        except:
     597            return __version__[11:-1].strip();
     598        return sRev;
    593599
    594600    def _getPythonHexVersion(self):
     
    690696                    raise Exception('Still exists after deletion, weird.');
    691697            except Exception, oXcpt:
     698                # pylint: disable=too-many-boolean-expressions
    692699                if    fUseTheForce is True \
    693700                  and utils.getHostOs() not in ['win', 'os2'] \
Note: See TracChangeset for help on using the changeset viewer.

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