Closed Bug 1599250 Opened 6 years ago Closed 5 years ago

mach test cannot run some python tests

Categories

(Testing :: General, task, P3)

Version 3
task

Tracking

(Not tracked)

RESOLVED WORKSFORME

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.

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.

Other python tests can be successfully run with 'mach test', like,

$ ./mach test python/mozterm/test/test_widgets.py

Summary: mach test cannot run python tests → mach test cannot run some python tests

It looks like these tests are, strictly speaking, "telemetry tests" (TELEMETRY_TESTS_CLIENT_MANIFESTS), distinct from "python tests" (PYTHON_UNITTEST_MANIFESTS).

(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.

Priority: -- → P3
Whiteboard: dev-prod-2020

I wonder if this might be related to bug 1618981.

See Also: → 1604221, 1618981

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.

See Also: 1618981

Agreed, thanks.

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: nobody → gbrown
Flags: needinfo?(ehsan)

Please re-open if this is still causing any trouble.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
Flags: needinfo?(ehsan)
You need to log in before you can comment on or make changes to this bug.