summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-604401-files-are-directories
Commit message (Collapse)AuthorAgeFilesLines
* show globalerrors before asking for confirmationDavid Kalnischkies2016-05-161-4/+5
| | | | | | | | | | | | | | Errors cause a kind of automatic no already, but warnings and notices are only displayed at the end of the apt execution even through they could effect the choice of saying yes/no to questions: E.g. if a configuration (file) was ignored you wanted to have an effect or if an external solver you used generated warnings suggesting that the solution might be valid, but bogus non-the-less and similar things. Note that this only moves those messages up to the question if the answer is interactive – not if e.g. -y is used or no question is asked at all so this has an effect only on interactive usage of apt(-get), not script who might be parsing apt output.
* tests: support spaces in path and TMPDIRDavid Kalnischkies2015-12-191-2/+2
| | | | | | | This doesn't allow all tests to run cleanly, but it at least allows to write tests which could run successfully in such environments. Git-Dch: Ignore
* test if TMPDIR is accessible before usingDavid Kalnischkies2014-10-201-1/+1
| | | | | | | | | | Private temporary directories as created by e.g. libpam-tmpdir are nice, but they are also very effective in preventing our priviledge dropping to work as TMPDIR will be set to a directory only root has access to, so working with it as _apt will fail. We circumvent this by extending our check for a usable TMPDIR setting by checking access rights. Closes: 765951
* add chronic-like testsuccess/testfailure helpersDavid Kalnischkies2013-08-121-5/+5
| | | | | | | | | | For many commands the output isn't stable (like then dpkg is called) but the exitcode is, so this helper enhances the common && msgpass || msgfail by generating automatically a msgtest and showing the output of the command in case of failure instead of discarding it unconditionally, the later being chronic-like behaviour Git-Dch: Ignore
* test/integration/: remove a bunch of "local" statements from the ↵Michael Vogt2011-02-151-1/+1
| | | | shellscript, keep tests running even on failure but log failures
* * apt-pkg/contrib/fileutl.cc:David Kalnischkies2011-01-121-0/+66
- add a RealFileExists method and check that your configuration files are real files to avoid endless loops if not (Closes: #604401)