From 35a774200999ac2fca48693c1c169bf99d2f63ea Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Tue, 26 May 2020 13:25:03 -0400 Subject: reset upstream subtrees to HEAD Reset the following subtrees on HEAD: poky: ed3bdd7fbc(dunfell) meta-raspberrypi: 8066fac91d(dunfell) meta-security: d83f7cb0c9(dunfell) meta-openembedded: e413c1ef62(dunfell) Change-Id: Ifd3228663b08911c890d7631310294cccb3dd232 Signed-off-by: Brad Bishop --- poky/meta/lib/oeqa/selftest/cases/package.py | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'poky/meta/lib/oeqa/selftest/cases/package.py') diff --git a/poky/meta/lib/oeqa/selftest/cases/package.py b/poky/meta/lib/oeqa/selftest/cases/package.py index 3010b1af49..b87f8dc3e2 100644 --- a/poky/meta/lib/oeqa/selftest/cases/package.py +++ b/poky/meta/lib/oeqa/selftest/cases/package.py @@ -148,26 +148,3 @@ class PackageTests(OESelftestTestCase): '/usr/libexec/hello4']: if not gdbtest(qemu, binary): self.fail('GDB %s failed' % binary) - - def test_preserve_ownership(self): - import os, stat, oe.cachedpath - features = 'IMAGE_INSTALL_append = " selftest-chown"\n' - self.write_config(features) - bitbake("core-image-minimal") - - sysconfdir = get_bb_var('sysconfdir', 'selftest-chown') - def check_ownership(qemu, gid, uid, path): - self.logger.info("Check ownership of %s", path) - status, output = qemu.run_serial(r'/bin/stat -c "%U %G" ' + path, timeout=60) - output = output.split(" ") - if output[0] != uid or output[1] != gid : - self.logger.error("Incrrect ownership %s [%s:%s]", path, output[0], output[1]) - return False - return True - - with runqemu('core-image-minimal') as qemu: - for path in [ sysconfdir + "/selftest-chown/file", - sysconfdir + "/selftest-chown/dir", - sysconfdir + "/selftest-chown/symlink"]: - if not check_ownership(qemu, "test", "test", path): - self.fail('Test ownership %s failed' % path) -- cgit v1.2.3