]> code.ossystems Code Review - openembedded-core.git/commitdiff
ptest: Reproducibility: Take control of umask
authorDouglas Royds <douglas.royds@taitradio.com>
Thu, 22 Nov 2018 05:39:42 +0000 (18:39 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Nov 2018 23:32:10 +0000 (23:32 +0000)
The build host umask was leaking into the thing-ptest packages
at do_install_ptest() time.

Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/ptest.bbclass

index c19f65b9bb9a11bbd3f5d866b3d21e8c09460401..9d8a79854ad25cc6fb9397561c68748c97350f47 100644 (file)
@@ -59,6 +59,7 @@ addtask install_ptest_base   after do_install   before do_package do_populate_sy
 python () {
     if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
         d.setVarFlag('do_install_ptest_base', 'fakeroot', '1')
+        d.setVarFlag('do_install_ptest_base', 'umask', '022')
 
     # Remove all '*ptest_base' tasks when ptest is not enabled
     if not(d.getVar('PTEST_ENABLED') == "1"):