Changeset 05e8da8 for fedd/federation
- Timestamp:
- Jun 22, 2010 6:38:07 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 2b6e64d1
- Parents:
- 9e38ded
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
r9e38ded r05e8da8 1221 1221 if self.state_filename: self.write_state() 1222 1222 self.state_lock.release() 1223 # Remove the repo dir 1224 self.remove_dirs("%s/%s" %(self.repodir, expid)) 1225 # Walk up tmpdir, deleting as we go 1226 if self.cleanup: 1227 self.remove_dirs(tmpdir) 1228 else: 1229 log.debug("[start_experiment]: not removing %s" % tmpdir) 1230 1223 1231 1224 1232 log.error("Swap in failed on %s" % ",".join(failed)) … … 1240 1248 # Walk up tmpdir, deleting as we go 1241 1249 if self.cleanup: 1242 log.debug("[start_experiment]: removing %s" % tmpdir) 1243 for path, dirs, files in os.walk(tmpdir, topdown=False): 1244 for f in files: 1245 os.remove(os.path.join(path, f)) 1246 for d in dirs: 1247 os.rmdir(os.path.join(path, d)) 1248 os.rmdir(tmpdir) 1250 self.remove_dirs(tmpdir) 1249 1251 else: 1250 1252 log.debug("[start_experiment]: not removing %s" % tmpdir)
Note: See TracChangeset
for help on using the changeset viewer.