]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/utils/decorators: LogResults fix race condition in linkfile
authorAníbal Limón <anibal.limon@linux.intel.com>
Tue, 13 Sep 2016 20:25:42 +0000 (15:25 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Sep 2016 11:15:07 +0000 (12:15 +0100)
commit62c45ffbc7c239b6d50931a0fc46f9a67635b1b1
tree4dd13a84dc729a9b611eb04b2e793b36814a14d2
parentb28e6d6039902f79e46a764035b09c642cb31143
oeqa/utils/decorators: LogResults fix race condition in linkfile

In order to avoid race condition when test if exists the linkfile
use bb.utils.lock, the best solution is to create a unique name
for the link file.

There is no way to create a unique linkfile name at this decorator
because is needed the machine and image variables, those variables
can't be passed easily in this code.

To avoid broke test export functionality use a try/except because bb
isn't available when use test export

[YOCTO #10225]

(From OE-Core rev: 059d475b6bce1e5414170a4fe2e7989f6b0eacd6)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/decorators.py