Running a non-existing test suite doesn't fail
Bug #1282995 reported by
Cris Dywan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
High
|
Corey Goldberg | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This has tripped me up before and finally I realized what the issue is:
> autopilot run -v dialer_app
11:51:55.164 INFO run:64 - Autopilot Source Version: 1.4.0
Autopilot Package Version: 1.4+14.
could not import package dialer_app: No module named dialer_app
Loading tests from:
Tests running...
Ran 0 tests in 0.000s
OK
There's no test package there and the tests I want to run don't exist. Yet I get a OK there, no error.
You may argue that it's "obvious" but believe me it isn't.
Related branches
lp:~coreygoldberg/autopilot/no-suite-1282995
- Thomi Richards (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 46 lines (+16/-2)2 files modifiedautopilot/run.py (+8/-2)
autopilot/tests/unit/test_run.py (+8/-0)
Changed in autopilot: | |
assignee: | nobody → Corey Goldberg (coreygoldberg) |
Changed in autopilot: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
Agreed - it should print an error message. It does exit non-0 though, so it's not totally broken :)