From 74b1b1fc17726d805b00dee6b5547254f5cf230c Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Thu, 8 Apr 2021 19:11:11 +0300 Subject: Tests: preserving unit.log when run without restart. Introducing "unit.log.Log" class for "unit.log" file management. Moving "findall()" function into TestApplicationProto. Using "os.kill()" to send signals. --- test/test_tls.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'test/test_tls.py') diff --git a/test/test_tls.py b/test/test_tls.py index 63422dfb..abdca167 100644 --- a/test/test_tls.py +++ b/test/test_tls.py @@ -6,16 +6,11 @@ import subprocess import pytest from unit.applications.tls import TestApplicationTLS -from unit.option import option class TestTLS(TestApplicationTLS): prerequisites = {'modules': {'python': 'any', 'openssl': 'any'}} - def findall(self, pattern): - with open(option.temp_dir + '/unit.log', 'r', errors='ignore') as f: - return re.findall(pattern, f.read()) - def openssl_date_to_sec_epoch(self, date): return self.date_to_sec_epoch(date, '%b %d %H:%M:%S %Y %Z') -- cgit