summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-get-changelog
Commit message (Collapse)AuthorAgeFilesLines
* test exitcode as well as string equalityDavid Kalnischkies2015-03-161-2/+2
| | | | | | | | We use test{success,failure} now all over the place in the framework, so its only consequencial to do this in the situations in which we test for a specific output as well. Git-Dch: Ignore
* fix file ownership tests to work on kfreebsdDavid Kalnischkies2014-11-181-2/+2
| | | | | | While on linux files are created in /tmp with $USER:$USER, on my kfreebsd testmachine they are created with $USER:root, so we pull some strings here to make it work on both.
* chown finished partial files earlierDavid Kalnischkies2014-10-231-10/+15
| | | | | | | | | | | | | | | | | partial files are chowned by the Item baseclass to let the methods work with them. Now, this baseclass is also responsible for chowning the files back to root instead of having various deeper levels do this. The consequence is that all overloaded Failed() methods now call the Item::Failed base as their first step. The same is done for Done(). The effect is that even in partial files usually don't belong to _apt anymore, helping sneakernets and reducing possibilities of a bad method modifying files not belonging to them. The change is supported by the framework not only supporting being run as root, but with proper permission management, too, so that privilege dropping can be tested with them.
* testcases runable as rootDavid Kalnischkies2014-10-151-5/+4
| | | | | | | Running the testcases is usually not a good idea, but it can be handy to check if the privilege dropping works. Git-Dch: Ignore
* allow fetcher setup without directory creationDavid Kalnischkies2014-09-271-0/+6
| | | | | | | | | | | apt-get download and changelog as well as apt-helper reuse the acquire system for their own proposes without requiring the directories the fetcher wants to create, which is a problem if you run them as non-root and the directories do not exist as it greets you with: E: Archives directory /var/cache/apt/archives/partial is missing. - Acquire (13: Permission denied) Closes: 762898
* don't call pager in non-terminals for changelogDavid Kalnischkies2014-09-091-3/+2
| | | | | | | | | | | | | | | Most pagers are nice and default to running non-interactively if they aren't connected to a terminal and we relied on that. On ci.debian.net the configured pager is printing a header out of nowhere though, so if we are printing to a non-terminal we call "cat" instead. In the rework we also "remove" the dependency on sensible-utils in sofar as we call some alternatives if calling the utils fail. This seems to be the last problem preventing a "PASS" status on ci.debian.net, so we close the associated bugreport. Closes: 755040
* enforce 'house-style' on changelog testcaseDavid Kalnischkies2014-02-141-5/+5
| | | | Git-Dch: Ignore
* * cmdline/apt-get.cc:Daniel Hartwig2012-06-101-0/+3
| | | | | - print URIs for all changelogs in case of --print-uris, thanks to Daniel Hartwig for the patch! (Closes: #674897)
* rename changelog and autoremove testfile to indicate better what is testedDavid Kalnischkies2011-02-071-0/+36