VirtualBox

Ignore:
Timestamp:
Mar 22, 2023 6:54:16 AM (21 months ago)
Author:
vboxsync
Message:

Cutting long line of python code in valkit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r99085 r99102  
    21272127        return (fRc, cDirs, cFiles, cOthers);
    21282128
    2129     def gctrlReadDirTree2(self, oGuestSession, oDir, fUseDirList = False, cEntriesPerRead = 0): # type: (testfileset.TestDir) -> bool
     2129    def gctrlReadDirTree2(self, oGuestSession, oDir, fUseDirList = False, cEntriesPerRead = 0):
     2130        # type: (testfileset.TestDir) -> bool
    21302131        """
    21312132        Helper function to recursively read a guest directory tree specified in the current test.
     
    21622163                if vbox.ComError.notEqual(oXcpt, vbox.ComError.VBOX_E_OBJECT_NOT_FOUND):
    21632164                    if fUseDirList:
    2164                         fRc = reporter.errorXcpt('Error listing directory "%s" (cEntriesToRead=%d):' % (oDir.sPath, cEntriesToRead));
     2165                        fRc = reporter.errorXcpt('Error listing directory "%s" (cEntriesToRead=%d):' % \
     2166                            (oDir.sPath, cEntriesToRead));
    21652167                    else:
    21662168                        fRc = reporter.errorXcpt('Error reading directory "%s":' % (oDir.sPath));
     
    22112213                        # Check the name.
    22122214                        if oFsObj.sName != sName:
    2213                             fRc = reporter.error('%s: expected name "%s", got "%s" instead!' % (oFsObj.sPath, oFsObj.sName, sName,));
     2215                            fRc = reporter.error('%s: expected name "%s", got "%s" instead!' % \
     2216                                (oFsObj.sPath, oFsObj.sName, sName,));
    22142217
    22152218                        # Check the size if a file.
    22162219                        if isinstance(oFsObj, testfileset.TestFile) and cbFile != oFsObj.cbContent:
    2217                             fRc = reporter.error('%s: expected size %s, got %s instead!' % (oFsObj.sPath, oFsObj.cbContent, cbFile,));
     2220                            fRc = reporter.error('%s: expected size %s, got %s instead!' % \
     2221                                (oFsObj.sPath, oFsObj.cbContent, cbFile,));
    22182222
    22192223                        ## @todo check timestamps and attributes.
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