simplify command line by only allowing exactly one test argument
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Debian) |
Fix Released
|
Unknown
|
|||
autopkgtest (Ubuntu) |
Fix Released
|
Wishlist
|
Martin Pitt |
Bug Description
autopkgtest for a dkms module with autodep8.
Content of local control file:
'''
Test-Command: /non-existent
Restrictions: needs-root, allow-stderr
Depends: dkms
'''
This command fails (as expected)
adt-run -d --override-
But this command passes:
adt-run asic0x -d --override-
In the second case, the test uses the control file generated by autodep8 instead of the control file provided on the command line.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: autopkgtest 3.14
ProcVersionSign
Uname: Linux 3.19.0-16-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Sun May 10 11:03:40 2015
InstallationDate: Installed on 2013-09-03 (613 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
PackageArchitec
SourcePackage: autopkgtest
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in autopkgtest (Debian): | |
status: | Unknown → New |
no longer affects: | autopkgtest (Debian) |
Changed in autopkgtest (Debian): | |
status: | Unknown → New |
Changed in autopkgtest (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in autopkgtest (Debian): | |
status: | New → Fix Committed |
Changed in autopkgtest (Debian): | |
status: | Fix Committed → Fix Released |
adt-run is designed to run an arbitrary number of tests on the command line; see the manpage:
TEST OPTIONS
Unless stated otherwise, these affect all subsequent test arguments.
(-B, --built-binaries, --control-override)
For the record, I think that makes command line parsing and understanding unnecessarily complex and introduces this kind of positional dependency. But it has been adt-run's CLI interface since pretty much day one, so I'm a bit hesitant to change it. IIRC Rodney Dawes was complaining about this as well a while ago, subscribing him for his interest.
I retitle this to rearrange the CLI to only accept exactly one test, then the test modifications like --built-binaries, --control-override, or --click-source can occur anywhere.