Fix regexp for log_step

Closes-Bug:#PROD-14880

Change-Id: I69b731df73b70087a9be1d9b04afe5155de6a634
Reviewed-on: https://review.gerrithub.io/379860
Reviewed-by: Dennis Dmitriev <dis.xcom@gmail.com>
Tested-by: Dennis Dmitriev <dis.xcom@gmail.com>
diff --git a/tcp_tests/helpers/log_step.py b/tcp_tests/helpers/log_step.py
index 64ec7aa..6ba7164 100644
--- a/tcp_tests/helpers/log_step.py
+++ b/tcp_tests/helpers/log_step.py
@@ -22,11 +22,9 @@
 
 def parse_test_doc(docstring):
     test_case = {}
-    parse_regex = re.compile(r'(?P<title>^(.*\S.*\n)+)+'
-                             r'(?P<empty_line1>\s*\n)'
+    parse_regex = re.compile(r'^(?P<title>(.+\n)+)'
                              r'\s*Scenario:\s*\n(?P<scenario>(.+\n)+)'
-                             r'(?P<empty_line2>\s*(\n|$))?'
-                             r'(\s*Duration:\s+(?P<duration>\d+).*\n)?')
+                             r'(\s*Duration:\s*(?P<duration>\d+).*\n)?')
     doc_match = re.match(parse_regex, docstring)
 
     if not doc_match: