diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/parselogs.py')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/parselogs.py | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/meta/lib/oeqa/runtime/cases/parselogs.py b/meta/lib/oeqa/runtime/cases/parselogs.py index a1791b5cca..1cac59725d 100644 --- a/meta/lib/oeqa/runtime/cases/parselogs.py +++ b/meta/lib/oeqa/runtime/cases/parselogs.py | |||
@@ -32,7 +32,7 @@ common_errors = [ | |||
32 | "Failed to load module \"fbdev\"", | 32 | "Failed to load module \"fbdev\"", |
33 | "Failed to load module fbdev", | 33 | "Failed to load module fbdev", |
34 | "Failed to load module glx", | 34 | "Failed to load module glx", |
35 | "[drm] Cannot find any crtc or sizes - going 1024x768", | 35 | "[drm] Cannot find any crtc or sizes", |
36 | "_OSC failed (AE_NOT_FOUND); disabling ASPM", | 36 | "_OSC failed (AE_NOT_FOUND); disabling ASPM", |
37 | "Open ACPI failed (/var/run/acpid.socket) (No such file or directory)", | 37 | "Open ACPI failed (/var/run/acpid.socket) (No such file or directory)", |
38 | "NX (Execute Disable) protection cannot be enabled: non-PAE kernel!", | 38 | "NX (Execute Disable) protection cannot be enabled: non-PAE kernel!", |
@@ -61,6 +61,8 @@ common_errors = [ | |||
61 | "[rdrand]: Initialization Failed", | 61 | "[rdrand]: Initialization Failed", |
62 | "[pulseaudio] authkey.c: Failed to open cookie file", | 62 | "[pulseaudio] authkey.c: Failed to open cookie file", |
63 | "[pulseaudio] authkey.c: Failed to load authentication key", | 63 | "[pulseaudio] authkey.c: Failed to load authentication key", |
64 | "was skipped because of a failed condition check", | ||
65 | "was skipped because all trigger condition checks failed", | ||
64 | ] | 66 | ] |
65 | 67 | ||
66 | video_related = [ | 68 | video_related = [ |
@@ -88,6 +90,9 @@ qemux86_common = [ | |||
88 | 'tsc: HPET/PMTIMER calibration failed', | 90 | 'tsc: HPET/PMTIMER calibration failed', |
89 | "modeset(0): Failed to initialize the DRI2 extension", | 91 | "modeset(0): Failed to initialize the DRI2 extension", |
90 | "glamor initialization failed", | 92 | "glamor initialization failed", |
93 | "blk_update_request: I/O error, dev fd0, sector 0 op 0x0:(READ)", | ||
94 | "floppy: error", | ||
95 | 'failed to IDENTIFY (I/O error, err_mask=0x4)', | ||
91 | ] + common_errors | 96 | ] + common_errors |
92 | 97 | ||
93 | ignore_errors = { | 98 | ignore_errors = { |
@@ -293,7 +298,7 @@ class ParseLogsTest(OERuntimeTestCase): | |||
293 | grepcmd = 'grep ' | 298 | grepcmd = 'grep ' |
294 | grepcmd += '-Ei "' | 299 | grepcmd += '-Ei "' |
295 | for error in errors: | 300 | for error in errors: |
296 | grepcmd += '\<' + error + '\>' + '|' | 301 | grepcmd += r'\<' + error + r'\>' + '|' |
297 | grepcmd = grepcmd[:-1] | 302 | grepcmd = grepcmd[:-1] |
298 | grepcmd += '" ' + str(log) + " | grep -Eiv \'" | 303 | grepcmd += '" ' + str(log) + " | grep -Eiv \'" |
299 | 304 | ||
@@ -304,13 +309,13 @@ class ParseLogsTest(OERuntimeTestCase): | |||
304 | errorlist = ignore_errors['default'] | 309 | errorlist = ignore_errors['default'] |
305 | 310 | ||
306 | for ignore_error in errorlist: | 311 | for ignore_error in errorlist: |
307 | ignore_error = ignore_error.replace('(', '\(') | 312 | ignore_error = ignore_error.replace('(', r'\(') |
308 | ignore_error = ignore_error.replace(')', '\)') | 313 | ignore_error = ignore_error.replace(')', r'\)') |
309 | ignore_error = ignore_error.replace("'", '.') | 314 | ignore_error = ignore_error.replace("'", '.') |
310 | ignore_error = ignore_error.replace('?', '\?') | 315 | ignore_error = ignore_error.replace('?', r'\?') |
311 | ignore_error = ignore_error.replace('[', '\[') | 316 | ignore_error = ignore_error.replace('[', r'\[') |
312 | ignore_error = ignore_error.replace(']', '\]') | 317 | ignore_error = ignore_error.replace(']', r'\]') |
313 | ignore_error = ignore_error.replace('*', '\*') | 318 | ignore_error = ignore_error.replace('*', r'\*') |
314 | ignore_error = ignore_error.replace('0-9', '[0-9]') | 319 | ignore_error = ignore_error.replace('0-9', '[0-9]') |
315 | grepcmd += ignore_error + '|' | 320 | grepcmd += ignore_error + '|' |
316 | grepcmd = grepcmd[:-1] | 321 | grepcmd = grepcmd[:-1] |