chown fails on root-owned files with "rw-build-tree"
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| autopkgtest (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt | ||
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-
+Operation not permitted
chown: changing ownership of ‘/tmp/adt-
+Operation not permitted
adt-run [15:33:32]: test large: -------
sh: 1: cannot open /tmp/adt-
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.
| Changed in autopkgtest (Ubuntu): | |
| importance: | Undecided → Medium |
| status: | New → In Progress |
| assignee: | nobody → Martin Pitt (pitti) |

Reproduced in test case and fixed in http:// anonscm. debian. org/cgit/ autopkgtest/ autopkgtest. git/commit/ ?id=b2148a.
@Didier: Please re-run the ubuntu-make tests against xenial, this should fix it.