diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-11-13 13:30:30 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-11-13 13:30:30 +0100 |
| commit | f748866e9eb62900485100714bff42647a366af5 (patch) | |
| tree | 913fdc9f08e89b07f1fd23837811f674f7f9ee7b | |
| parent | 639c7ca5885b8f47d252754694534685acaaaefb (diff) | |
| download | allocbench-f748866e9eb62900485100714bff42647a366af5.tar.gz allocbench-f748866e9eb62900485100714bff42647a366af5.zip | |
remove left over status file at exit
If writing the status file fails because of not sufficient space left
successive runs can fail because of a broken status file.
| -rwxr-xr-x | bench.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -52,6 +52,10 @@ def epilog(): with open(os.path.join(src.globalvars.resdir, "facts.save"), "wb") as facts_file: pickle.dump(src.globalvars.facts, facts_file) + # remove a left over status file if some is present + if os.path.exists("status"): + os.remove("status") + def check_dependencies(): """Check if known requirements of allocbench are met""" |
