From: Markus Lehtonen Date: Fri, 24 Mar 2017 14:43:25 +0000 (+0200) Subject: oeqa.buildperf: limit the length of error output X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~21881 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f1996cb016713295edf35edc32dd5e84888a5c7;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oeqa.buildperf: limit the length of error output Limit the length of error logs to 40 lines. We don't need to show/archive thousands of lines of bitbake logs if an error occurs. Signed-off-by: Markus Lehtonen Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index aa5c5ad445c..6e62b279c1d 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py @@ -36,7 +36,7 @@ log = logging.getLogger('build-perf') # Our own version of runCmd which does not raise AssertErrors which would cause # errors to interpreted as failures -runCmd2 = partial(runCmd, assert_error=False) +runCmd2 = partial(runCmd, assert_error=False, limit_exc_output=40) class KernelDropCaches(object):