mach test cannot run some python tests
Categories
(Testing :: General, task, P3)
Tracking
(Not tracked)
People
(Reporter: ehsan.akhgari, Assigned: gbrown)
References
Details
(Whiteboard: dev-prod-2020)
$ ./mach test telemetry/marionette/tests/client/test_search_counts_across_sessions.py
UNKNOWN TEST: telemetry/marionette/tests/client/test_search_counts_across_sessions.py
I was unable to find tests from the given argument(s).
You should specify a test directory, filename, test suite name, or
abbreviation. If no arguments are given, there must be local file
changes and corresponding IMPACTED_TESTS annotations in moz.build
files relevant to those files.
It's possible my little brain doesn't know about the type of test you are
trying to execute. If you suspect this, please request support by filing
a bug at
https://bugzilla.mozilla.org/enter_bug.cgi?product=Testing&component=General.
| Assignee | ||
Comment 1•6 years ago
|
||
I thought there might be a simple path issue here, but I ran, from topsrcdir,
$ ./mach test toolkit/components/telemetry/tests/marionette/tests/client/test_search_counts_across_sessions.py
and got the same result.
| Assignee | ||
Comment 2•6 years ago
|
||
Other python tests can be successfully run with 'mach test', like,
$ ./mach test python/mozterm/test/test_widgets.py
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 3•6 years ago
|
||
It looks like these tests are, strictly speaking, "telemetry tests" (TELEMETRY_TESTS_CLIENT_MANIFESTS), distinct from "python tests" (PYTHON_UNITTEST_MANIFESTS).
| Reporter | ||
Comment 4•6 years ago
|
||
(In reply to Geoff Brown [:gbrown] from comment #3)
It looks like these tests are, strictly speaking, "telemetry tests" (TELEMETRY_TESTS_CLIENT_MANIFESTS), distinct from "python tests" (PYTHON_UNITTEST_MANIFESTS).
Indeed.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 5•6 years ago
|
||
I wonder if this might be related to bug 1618981.
| Assignee | ||
Updated•6 years ago
|
Comment 6•6 years ago
|
||
I do not believe this is related to 1618981. The test in test_search_counts_across_sessions.py is a subclass of MarionetteTestCase which derives from CommonTestCase which is a unittest.TestCase subclass. The issue in Bug 1618981 only affects non-unittest.TestCase tests.
| Assignee | ||
Comment 7•6 years ago
|
||
Agreed, thanks.
| Assignee | ||
Comment 8•6 years ago
|
||
This seems to be working now (I don't know what changed).
$ ./mach test toolkit/components/telemetry/tests/marionette/tests/client/test_search_counts_across_sessions.py
works for me.
:ehsan - Agreed?
| Assignee | ||
Comment 9•5 years ago
|
||
Please re-open if this is still causing any trouble.
| Assignee | ||
Updated•5 years ago
|
Description
•