Bugfix physim: execution log files can have a '+' sign
This commit is contained in:
@@ -210,7 +210,7 @@ class PhySim:
|
|||||||
listLogFiles = subprocess.check_output('egrep --colour=never "Execution Log file|Linux oai-" physim_test.txt', shell=True, universal_newlines=True)
|
listLogFiles = subprocess.check_output('egrep --colour=never "Execution Log file|Linux oai-" physim_test.txt', shell=True, universal_newlines=True)
|
||||||
for line in listLogFiles.split('\n'):
|
for line in listLogFiles.split('\n'):
|
||||||
res1 = re.search('Linux (?P<pod>oai-[a-zA-Z0-9\-]+) ', str(line))
|
res1 = re.search('Linux (?P<pod>oai-[a-zA-Z0-9\-]+) ', str(line))
|
||||||
res2 = re.search('Execution Log file = (?P<name>[a-zA-Z0-9\-\/\.\_]+)', str(line))
|
res2 = re.search('Execution Log file = (?P<name>[a-zA-Z0-9\-\/\.\_\+]+)', str(line))
|
||||||
if res1 is not None:
|
if res1 is not None:
|
||||||
podName = res1.group('pod')
|
podName = res1.group('pod')
|
||||||
if res2 is not None:
|
if res2 is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user