Changeset 83294 in vbox for trunk/src/VBox/ValidationKit/testdriver/base.py
- Timestamp:
- Mar 16, 2020 8:13:27 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/base.py
r82968 r83294 1588 1588 time.sleep(1); 1589 1589 1590 dPidsToRemove = []; # Temporary dict to append PIDs to remove later. 1591 1590 1592 for iPid in dPids: 1591 1593 if not processExists(iPid): 1592 1594 reporter.log('%s (%s) terminated' % (dPids[iPid][0], iPid,)); 1593 1595 self.pidFileRemove(iPid, fQuiet = True); 1594 del dPids[iPid]; 1596 dPidsToRemove.append(iPid); 1597 continue; 1598 1599 # Remove PIDs from original dictionary, as removing keys from a 1600 # dictionary while iterating on it won't work and will result in a RuntimeError. 1601 for iPidToRemove in dPidsToRemove: 1602 del dPids[iPidToRemove]; 1595 1603 1596 1604 if not dPids: … … 1811 1819 unittest.main(); 1812 1820 # not reached. 1813
Note:
See TracChangeset
for help on using the changeset viewer.