Public bug reported:

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.

** Affects: autopkgtest (Ubuntu)
     Importance: Medium
     Assignee: Martin Pitt (pitti)
         Status: In Progress

** Changed in: autopkgtest (Ubuntu)
   Importance: Undecided => Medium

** Changed in: autopkgtest (Ubuntu)
       Status: New => In Progress

** Changed in: autopkgtest (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1535234

Title:
  chown fails on root-owned files with "rw-build-tree"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1535234/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to