adt-run fulfills dependencies with --built-tree contrary to the manpage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
adt-run(1) says:
--built-tree directory
be run. Note that the packages that would normally be installed
as a result of @ in the tests' Depends field (which includes the
case where the Depends field is not specified) are not
On the other hand, when I run:
adt-run --built-tree facter-1.6.10 --- adt-virt-schroot saucy-amd64
then it fulfils the facter test dependency from the archive. I expected it not to fulfil the dependency and thus for my test to fail.
This is a problem for me because I am trying to test my new dep8 test for facter to prevent a recurrence of bug 1173265. In order to test my test, I'm trying to run my new test against a locally rebuilt deb of facter 1.6.9-2ubuntu1 to verify that it correctly detects the failure case. So I ran:
adt-run --binaries-
(facter_
I expected this to fulfill the facter dependency in my test from the deb, rather than from the archive. But adt-run appeared to ignore this and fulfill it from the archive instead, causing the test run to pass, instead of running it from my local .deb and causing the test to fail.
I'm not sure if I'm calling adt-run correctly here, but I am confused by the documentation. So I reduced the problem and found behaviour that directly contracts the manpage, as above.
This bug is for the first case, where --built-tree fulfils dependencies in direct contradiction of the documentation.
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: autopkgtest 2.2.3ubuntu4
ProcVersionSign
Uname: Linux 3.8.0-19-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Thu May 2 11:04:13 2013
Ec2AMI: ami-000002a8
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
MarkForUpload: True
PackageArchitec
ProcEnviron:
TERM=screen
LC_COLLATE=C
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: autopkgtest
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
Changed in autopkgtest (Ubuntu): | |
importance: | Undecided → High |
failure-case.log contains the output of "adt-run --built-tree facter-1.6.10 --- adt-virt-schroot saucy-amd64". Note that apt-get downloaded facter from the archive. From the manpage, I expect this not to happen.
In case it's relevant, my facter-1.6.10 is actually an unbuilt tree. But my test doesn't need the tree to be built, so I expected it to be passed to the test unchanged.