Imlement result searching based on pattern

Related-prod: PRODX-30060
Change-Id: I4495db03a23c4edadfcf938a598ec84376c73ff9
diff --git a/testrail_bot/control/views.py b/testrail_bot/control/views.py
index bc052a1..db624a6 100644
--- a/testrail_bot/control/views.py
+++ b/testrail_bot/control/views.py
@@ -65,10 +65,13 @@
 def submit_run(request, run_id):
     run = models.TestRailTestRun.objects.get(pk=run_id)
     testrail_run = test_rail_api.get_run_by_id(run.run_id)
+    run_name = ''
     if not run.run_name:
-        run.run_name = testrail_run['name']
+        run_name += testrail_run['name']
+    if run.test_pattern:
+        run_name +=  "-" + run.test_pattern
     report_name = "{}-run_id-{}-date-{}".format(
-        run.run_name, run.run_id, datetime.datetime.isoformat(datetime.datetime.now()))
+        run_name, run.run_id, datetime.datetime.isoformat(datetime.datetime.now()))
     path = os.path.join(models.fs.location, report_name)
     with open(path, "w"):
         pass