]> code.ossystems Code Review - openembedded-core.git/commitdiff
testimage: add task level lock
authorStefan Stanacar <stefanx.stanacar@intel.com>
Sat, 1 Mar 2014 20:12:57 +0000 (22:12 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Mar 2014 15:24:04 +0000 (15:24 +0000)
For machines other than qemu it will not be okay to run
multiple testimage tasks in parallel.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/testimage-auto.bbclass
meta/classes/testimage.bbclass

index a5b8f7f14a2fde78cd5d815f2661ce6a3b2309ac..860599d2b5de7c2076f1a990a5a51ccc72618aed 100644 (file)
@@ -20,3 +20,4 @@ python do_testimage_auto() {
 }
 addtask testimage_auto before do_build after do_rootfs
 do_testimage_auto[depends] += "${TESTIMAGEDEPENDS}"
+do_testimage_auto[lockfiles] += "${TESTIMAGELOCK}"
index 48e10323262e9951b315824b78f3d75fb8f76fa3..691c7f6785bffb9a1cf68cf54f6b0c1af4f3bf03 100644 (file)
@@ -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):