[GITLAB] - UPGRADE TO v12 on Wednesday the 18th of December at 11.30AM

Commit 7b954dac authored by Rohit Gupta's avatar Rohit Gupta

commits to exclude certain tests + increase number of runs + duration of test cases

parent 3ae32f4d
......@@ -52,11 +52,6 @@ import re
import numpy as np
import log
import case01
import case02
import case03
import case04
import case05
from openair import *
......@@ -840,22 +835,33 @@ def handle_testcaseclass_softmodem (testcase, oldprogramList, logdirOAI5GRepo ,
#This function searches if test case is present in list of test cases that need to be executed by user
def search_test_case_group(testcasename, testcasegroup, search_test_case_group):
def search_test_case_group(testcasename, testcasegroup, test_case_exclude):
if search_test_case_group.find(testcasename) >=0:
print "\nSkipping test case as it is found in black list: " + testcasename
return False
if test_case_exclude != "":
testcase_exclusion_list=test_case_exclude.split()
for entry in testcase_exclusion_list:
if entry.find('+') >=0:
match = re.search(entry, testcasename)
if match:
print "\nSkipping test case as it is found in black list: " + testcasename
return False
else:
match = entry.find(testcasename)
if match >=0:
print "\nSkipping test case as it is found in black list: " + testcasename
return False
if testcasegroup == '':
return True
testcaselist = testcasegroup.split()
for entry in testcaselist:
if entry.find('+') >=0:
match = re.search(entry, testcasename)
if match:
return True
else:
match = testcasename.find(entry)
if match >=0:
return True
else:
testcaselist = testcasegroup.split()
for entry in testcaselist:
if entry.find('+') >=0:
match = re.search(entry, testcasename)
if match:
return True
else:
match = testcasename.find(entry)
if match >=0:
return True
return False
......
This diff is collapsed.
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