[Bug 1535234] Re: chown fails on root-owned files with "rw-build-tree"
Didier Roche
didrocks at ubuntu.com
Tue Jan 19 08:05:33 UTC 2016
Started right now, let's see :) Thanks!
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1535234
Title:
chown fails on root-owned files with "rw-build-tree"
Status in autopkgtest package in Ubuntu:
Fix Committed
Bug description:
The ubuntu-make tests currently tmpfail on xenial due to this:
adt-run [15:33:32]: test large: [-----------------------
chown: changing ownership of ‘/tmp/adt-run.0gWOMN/build.oq7/ubuntu-make/tests/tools/__pycache__/local_server.cpython-34.pyc’:
+Operation not permitted
chown: changing ownership of ‘/tmp/adt-run.0gWOMN/build.oq7/ubuntu-make/tests/tools/__pycache__/__init__.cpython-34.pyc’:
+Operation not permitted
adt-run [15:33:32]: test large: -----------------------]
sh: 1: cannot open /tmp/adt-run.0gWOMN/large-stdout: No such file
Exit request sent.
<VirtSubproc>: failure: copyup source failed, status 2
adt-run [15:33:40]: ERROR: testbed failure: unexpected eof from the testbed
This test has "Restrictions: rw-build-tree", but does not run as root,
thus this code in run_tests() gets run:
if self.user and 'rw-build-tree' in test.restrictions:
script += 'chown -R %s "$buildtree"; ' % self.user
this is bogus as chown as user will fail on any file which is not
already owned by that user. Thus the test wrapper shell script fails
before it even gets to starting "tee" for -stdout/-stderr and it fails
in the above manner.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1535234/+subscriptions
More information about the foundations-bugs
mailing list