diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2014-03-01 22:12:57 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-05 15:50:20 +0000 |
commit | f51294d276c5b349826a3dbcc5d2a39569f203b1 (patch) | |
tree | 2087ffa8c6cc3920349b02936846f6828ca3736f /meta/classes | |
parent | 8615d574a8704318ebc12e4d5d591caa19c274b0 (diff) | |
download | poky-f51294d276c5b349826a3dbcc5d2a39569f203b1.tar.gz |
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 <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/testimage-auto.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/testimage.bbclass | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/testimage-auto.bbclass b/meta/classes/testimage-auto.bbclass index a5b8f7f14a..860599d2b5 100644 --- a/meta/classes/testimage-auto.bbclass +++ b/meta/classes/testimage-auto.bbclass | |||
@@ -20,3 +20,4 @@ python do_testimage_auto() { | |||
20 | } | 20 | } |
21 | addtask testimage_auto before do_build after do_rootfs | 21 | addtask testimage_auto before do_build after do_rootfs |
22 | do_testimage_auto[depends] += "${TESTIMAGEDEPENDS}" | 22 | do_testimage_auto[depends] += "${TESTIMAGEDEPENDS}" |
23 | do_testimage_auto[lockfiles] += "${TESTIMAGELOCK}" | ||
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 ?= "" | |||
42 | TESTIMAGEDEPENDS = "" | 42 | TESTIMAGEDEPENDS = "" |
43 | TESTIMAGEDEPENDS_qemuall = "qemu-native:do_populate_sysroot qemu-helper-native:do_populate_sysroot" | 43 | TESTIMAGEDEPENDS_qemuall = "qemu-native:do_populate_sysroot qemu-helper-native:do_populate_sysroot" |
44 | 44 | ||
45 | TESTIMAGELOCK = "${TMPDIR}/testimage.lock" | ||
46 | TESTIMAGELOCK_qemuall = "" | ||
47 | |||
45 | python do_testimage() { | 48 | python do_testimage() { |
46 | testimage_main(d) | 49 | testimage_main(d) |
47 | } | 50 | } |
48 | addtask testimage | 51 | addtask testimage |
49 | do_testimage[nostamp] = "1" | 52 | do_testimage[nostamp] = "1" |
50 | do_testimage[depends] += "${TESTIMAGEDEPENDS}" | 53 | do_testimage[depends] += "${TESTIMAGEDEPENDS}" |
54 | do_testimage[lockfiles] += "${TESTIMAGELOCK}" | ||
51 | 55 | ||
52 | 56 | ||
53 | def get_tests_list(d): | 57 | def get_tests_list(d): |