From: Richard Purdie Date: Fri, 26 Feb 2021 17:45:20 +0000 (+0000) Subject: selftest/reproducible: Don't call sync between each file compare X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~8604 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25f78abd8bbeb201fd9452e7983e015027954948;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git selftest/reproducible: Don't call sync between each file compare Calling sync between each file compare is horrible performance wise as we compare thousands of files. We don't care about IO latency here so disable. Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py index ce4e8ebe06b..05fc4b7fa0a 100644 --- a/meta/lib/oeqa/selftest/cases/reproducible.py +++ b/meta/lib/oeqa/selftest/cases/reproducible.py @@ -123,7 +123,7 @@ def compare_file(reference, test, diffutils_sysroot): result.status = MISSING return result - r = runCmd(['cmp', '--quiet', reference, test], native_sysroot=diffutils_sysroot, ignore_status=True) + r = runCmd(['cmp', '--quiet', reference, test], native_sysroot=diffutils_sysroot, ignore_status=True, sync=False) if r.status: result.status = DIFFERENT