PTL change
[doctor.git] / doctor_tests / scenario / common.py
index a5cbe48..a7240c0 100644 (file)
@@ -6,13 +6,10 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
-import sys
-
 from doctor_tests.common.utils import match_rep_in_file
 
 
-def calculate_notification_time():
-    log_file = '{0}/{1}'.format(sys.path[0], 'doctor.log')
+def calculate_notification_time(log_file):
 
     reg = '(?<=doctor monitor detected at )\d+.\d+'
     result = match_rep_in_file(reg, log_file)