Module: check_mk
Branch: master
Commit: 684ed30aff3e7a9e003628893ec4c540528b5262
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=684ed30aff3e7a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 17 10:47:15 2017 +0100
crawler: Removed saving of old report file
Change-Id: I93d623f521d2c5bcc502b4a71d38288823d90f51
---
tests/web/test_crawl.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/web/test_crawl.py b/tests/web/test_crawl.py
index 2dd0706..c83468d 100644
--- a/tests/web/test_crawl.py
+++ b/tests/web/test_crawl.py
@@ -374,8 +374,8 @@ class TestCrawler(object):
(len(self.visited), time.time() - self.started,
"\n".join(self.errors)))
# Copy the previous file for analysis
- if os.path.exists(self.report_file()):
- open(self.report_file()+".old",
"w").write(open(self.report_file()).read())
+ #if os.path.exists(self.report_file()):
+ # open(self.report_file()+".old",
"w").write(open(self.report_file()).read())
os.rename(self.report_file()+".tmp", self.report_file())