Bug#749729: autopkgtest: cannot make tests executable in read only directory

Nicolas Boulenguez nicolas at debian.org
Thu May 29 13:16:17 UTC 2014

Package: autopkgtest
Severity: minor
Control: affects -1 sadt

Hello.  doc/README.package-tests states:

  The cwd of each test is guaranteed to be the root of the source
  package. [...] Tests may not modify the source tree [...].

  If the file to be executed has no execute bits set, chmod a+x is
  applied to it. [...]

Adt-run uses a temporary copy of the tests, while sadt uses the
original ones from the source directory.  Both call chown, and the
latter will fail if ever used in a read-only source directory.

These statements should be clarified to avoid contradictory
interpretations before sadt is considered buggy.

I would appreciate a solution keeping both benefits, by requiring the
tests to be copied in a temp dir for example.

More information about the autopkgtest-devel mailing list