adt-run arguments are order dependent
Bug #1414122 reported by
dobey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Some of the arguments to the adt-run command are dependent on position.
Both of these incantations work as expected:
adt-run . --click ../foo.click
adt-run --click-source . --click ../foo.click
However, this one does not:
adt-run --click ../foo.click --click-source .
There is no error about positional arguments, the documentation does not state they must be in a certain order, and other arguments are not dependent on position. Instead, the command continues and old tests get run. Please fix these arguments to also not be positional.
To post a comment you must log in.
As you can run several tests/packages with adt-run, *all* arguments that specify tests are order dependent. It's been like that since day 1, and I don't want to break backwards compatibility by disallowing to run more than one package now.
> the documentation does not state they must be in a certain order
It does:
Path to click source tree for subsequent --click package.
--click clickpkg
[....]
Run click package tests from the preceeding --click-source. [...]