Commit 28453d17 authored by Jérome Perrin's avatar Jérome Perrin

test_check_slow_queries_digest_result: fix filename

this was not html.

Also use os.path.join to manipulate paths
parent 80d5d1b6
......@@ -44,7 +44,7 @@ class TestCheckSlowQueriesDigestResult(unittest.TestCase):
def _create_file(self, date, with_content):
content = ''
if with_content:
with codecs.open(self.base_path + "/ptdigest.html", encoding='utf-8') as f:
with codecs.open(os.path.join(self.base_path, "ptdigest.txt"), encoding='utf-8') as f:
content = f.read()
name = date.strftime('slowquery_digest.txt-%Y-%m-%d.xz')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment