[Bug 1453509] Re: autopkgtest behaves differently depending on the order of the arguments
Martin Pitt
martin.pitt at ubuntu.com
Mon May 11 05:34:46 UTC 2015
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.
** Changed in: autopkgtest (Ubuntu)
Importance: Undecided => Wishlist
** Changed in: autopkgtest (Ubuntu)
Status: New => Triaged
** Summary changed:
- autopkgtest behaves differently depending on the order of the arguments
+ simplify command line by only allowing exactly one test argument
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1453509
Title:
simplify command line by only allowing exactly one test argument
Status in autopkgtest package in Ubuntu:
Triaged
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-control=dkms/dkms.control asic0x --- qemu adt-vivid-amd64-cloud.img
But this command passes:
adt-run asic0x -d --override-control=dkms/dkms.control --- qemu adt-vivid-amd64-cloud.img
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
ProcVersionSignature: Ubuntu 3.19.0-16.16-generic 3.19.3
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)
PackageArchitecture: all
SourcePackage: autopkgtest
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1453509/+subscriptions
More information about the foundations-bugs
mailing list