From f51294d276c5b349826a3dbcc5d2a39569f203b1 Mon Sep 17 00:00:00 2001 From: Stefan Stanacar Date: Sat, 1 Mar 2014 22:12:57 +0200 Subject: testimage: add task level lock For machines other than qemu it will not be okay to run multiple testimage tasks in parallel. (From OE-Core rev: 9560305a9e28316438cb57421afc7877890c4b76) Signed-off-by: Stefan Stanacar Signed-off-by: Richard Purdie --- meta/classes/testimage.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/classes/testimage.bbclass') diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 48e1032326..691c7f6785 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -42,12 +42,16 @@ TEST_SERVER_IP ?= "" TESTIMAGEDEPENDS = "" TESTIMAGEDEPENDS_qemuall = "qemu-native:do_populate_sysroot qemu-helper-native:do_populate_sysroot" +TESTIMAGELOCK = "${TMPDIR}/testimage.lock" +TESTIMAGELOCK_qemuall = "" + python do_testimage() { testimage_main(d) } addtask testimage do_testimage[nostamp] = "1" do_testimage[depends] += "${TESTIMAGEDEPENDS}" +do_testimage[lockfiles] += "${TESTIMAGELOCK}" def get_tests_list(d): -- cgit 1.2.3-korg