Changeset 79092 in vbox for trunk/src/VBox/ValidationKit/testboxscript
- Timestamp:
- Jun 11, 2019 3:26:40 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131252
- Location:
- trunk/src/VBox/ValidationKit/testboxscript
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testboxscript/testboxcommons.py
r76553 r79092 48 48 Custom exception class 49 49 """ 50 pass 50 pass; # pylint: disable=unnecessary-pass 51 51 52 52 # … … 67 67 Debug logging, will later be disabled by default. 68 68 """ 69 if True is True: 69 if True is True: # pylint: disable=comparison-with-itself 70 70 if sTsPrf is None: sTsPrf = utils.getTimePrefix(); 71 71 print('[%s] %s' % (sTsPrf, sMessage,)); -
trunk/src/VBox/ValidationKit/testboxscript/testboxscript_real.py
r79087 r79092 67 67 class TestBoxScriptException(Exception): 68 68 """ For raising exceptions during TestBoxScript.__init__. """ 69 pass; 69 pass; # pylint: disable=unnecessary-pass 70 70 71 71 … … 401 401 if sValue == 'false': 402 402 return False; 403 if sValue != 'dunno' and sValue != 'none':403 if sValue not in ('dunno', 'none',): 404 404 raise TestBoxException('Unexpected response "%s" to helper command "%s"' % (sValue, sCmd)); 405 405 return fDunnoValue; … … 453 453 oWebm = oWmi.ConnectServer('.', 'root\\cimv2'); 454 454 for oItem in oWebm.ExecQuery('SELECT * FROM Win32_ComputerSystemProduct'): 455 if oItem.UUID !=None:455 if oItem.UUID is not None: 456 456 sUuid = str(uuid.UUID(oItem.UUID)); 457 457 except: … … 848 848 849 849 # Refresh sign-on parameters, changes triggers sign-on. 850 fNeedSignOn = (True if not self._fSignedOn or self._fNeedReSignOn else False)850 fNeedSignOn = not self._fSignedOn or self._fNeedReSignOn; 851 851 for item in self._ddSignOnParams: 852 852 if self._ddSignOnParams[item][self.FN] is None: -
trunk/src/VBox/ValidationKit/testboxscript/testboxtasks.py
r79087 r79092 430 430 cwd = self._oTestBoxScript.getPathSpill(), 431 431 universal_newlines = True, 432 close_fds = (False if utils.getHostOs() == 'win' else True),432 close_fds = utils.getHostOs() != 'win', 433 433 preexec_fn = (None if utils.getHostOs() in ['win', 'os2'] 434 434 else os.setsid)); # pylint: disable=no-member … … 842 842 # Figure the destination name (in scripts). 843 843 sDstFile = webutils.getFilename(sArchive); 844 if len(sDstFile) < 1\844 if not sDstFile \ 845 845 or re.search('[^a-zA-Z0-9 !#$%&\'()@^_`{}~.-]', sDstFile) is not None: # FAT charset sans 128-255 + '.'. 846 846 self._log('Malformed script zip filename: %s' % (sArchive,));
Note:
See TracChangeset
for help on using the changeset viewer.