diff options
Diffstat (limited to 'yocto-poky/meta/lib/oeqa/runtime/parselogs.py')
-rw-r--r-- | yocto-poky/meta/lib/oeqa/runtime/parselogs.py | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/yocto-poky/meta/lib/oeqa/runtime/parselogs.py b/yocto-poky/meta/lib/oeqa/runtime/parselogs.py index fc2bc3893..dec9ebe87 100644 --- a/yocto-poky/meta/lib/oeqa/runtime/parselogs.py +++ b/yocto-poky/meta/lib/oeqa/runtime/parselogs.py @@ -38,13 +38,23 @@ common_errors = [ 'Online check failed for', 'netlink init failed', 'Fast TSC calibration', + "BAR 0-9", + "Failed to load module \"ati\"", + "controller can't do DEVSLP, turning off", + "stmmac_dvr_probe: warning: cannot get CSR clock", + "error: couldn\'t mount because of unsupported optional features", ] +video_related = [ + "uvesafb", +] + x86_common = [ '[drm:psb_do_init] *ERROR* Debug is', 'wrong ELF class', 'Could not enable PowerButton event', 'probe of LNXPWRBN:00 failed with error -22', + 'pmd_set_huge: Cannot satisfy', ] + common_errors qemux86_common = [ @@ -80,6 +90,7 @@ ignore_errors = { 'qemuarm64' : [ 'Fatal server error:', '(EE) Server terminated with error (1). Closing log file.', + 'dmi: Firmware registration failed.', ] + common_errors, 'emenlow' : [ '[Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness', @@ -99,11 +110,8 @@ ignore_errors = { '(EE) Failed to load module psbdrv', '(EE) open /dev/fb0: No such file or directory', '(EE) AIGLX: reverting to software rendering', - "controller can't do DEVSLP, turning off", ] + x86_common, - 'intel-corei7-64' : [ - "controller can't do DEVSLP, turning off", - ] + common_errors, + 'intel-corei7-64' : x86_common, 'crownbay' : x86_common, 'genericx86' : x86_common, 'genericx86-64' : x86_common, @@ -123,9 +131,24 @@ class ParseLogsTest(oeRuntimeTest): @classmethod def setUpClass(self): self.errors = errors + + # When systemd is enabled we need to notice errors on + # circular dependencies in units. + if self.hasFeature("systemd"): + self.errors.extend([ + 'Found ordering cycle on', + 'Breaking ordering cycle by deleting job', + 'deleted to break ordering cycle', + 'Ordering cycle found, skipping', + ]) + self.ignore_errors = ignore_errors self.log_locations = log_locations self.msg = "" + (is_lsb, location) = oeRuntimeTest.tc.target.run("which LSB_Test.sh") + if is_lsb == 0: + for machine in self.ignore_errors: + self.ignore_errors[machine] = self.ignore_errors[machine] + video_related def getMachine(self): return oeRuntimeTest.tc.d.getVar("MACHINE", True) @@ -200,6 +223,7 @@ class ParseLogsTest(oeRuntimeTest): ignore_error = ignore_error.replace("[", "\[") ignore_error = ignore_error.replace("]", "\]") ignore_error = ignore_error.replace("*", "\*") + ignore_error = ignore_error.replace("0-9", "[0-9]") grepcmd += ignore_error+"|" grepcmd = grepcmd[:-1] grepcmd += "\'" @@ -221,9 +245,8 @@ class ParseLogsTest(oeRuntimeTest): results[log.replace('target_logs/','')] = {} rez = result.splitlines() for xrez in rez: - command = "grep \"\\"+str(xrez)+"\" -B "+str(lines_before)+" -A "+str(lines_after)+" "+str(log) try: - grep_output = subprocess.check_output(command, shell=True) + grep_output = subprocess.check_output(['grep', '-F', xrez, '-B', str(lines_before), '-A', str(lines_after), log]) except: pass results[log.replace('target_logs/','')][xrez]=grep_output |