Changeset 99102 in vbox for trunk/src/VBox/ValidationKit/tests/additions
- Timestamp:
- Mar 22, 2023 6:54:16 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r99085 r99102 2127 2127 return (fRc, cDirs, cFiles, cOthers); 2128 2128 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 2130 2131 """ 2131 2132 Helper function to recursively read a guest directory tree specified in the current test. … … 2162 2163 if vbox.ComError.notEqual(oXcpt, vbox.ComError.VBOX_E_OBJECT_NOT_FOUND): 2163 2164 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)); 2165 2167 else: 2166 2168 fRc = reporter.errorXcpt('Error reading directory "%s":' % (oDir.sPath)); … … 2211 2213 # Check the name. 2212 2214 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,)); 2214 2217 2215 2218 # Check the size if a file. 2216 2219 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,)); 2218 2222 2219 2223 ## @todo check timestamps and attributes.
Note:
See TracChangeset
for help on using the changeset viewer.