summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/parselogs.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/runtime/parselogs.py')
-rw-r--r--meta/lib/oeqa/runtime/parselogs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/parselogs.py b/meta/lib/oeqa/runtime/parselogs.py
index fc2bc38935..5a2d50f0a3 100644
--- a/meta/lib/oeqa/runtime/parselogs.py
+++ b/meta/lib/oeqa/runtime/parselogs.py
@@ -221,9 +221,8 @@ class ParseLogsTest(oeRuntimeTest):
221 results[log.replace('target_logs/','')] = {} 221 results[log.replace('target_logs/','')] = {}
222 rez = result.splitlines() 222 rez = result.splitlines()
223 for xrez in rez: 223 for xrez in rez:
224 command = "grep \"\\"+str(xrez)+"\" -B "+str(lines_before)+" -A "+str(lines_after)+" "+str(log)
225 try: 224 try:
226 grep_output = subprocess.check_output(command, shell=True) 225 grep_output = subprocess.check_output(['grep', '-F', xrez, '-B', str(lines_before), '-A', str(lines_after), log])
227 except: 226 except:
228 pass 227 pass
229 results[log.replace('target_logs/','')][xrez]=grep_output 228 results[log.replace('target_logs/','')][xrez]=grep_output