Closed Bug 1422005 Opened 6 years ago Closed 4 years ago

Error running cppunittests with |mach test|

Categories

(Testing :: CPPUnitTest, defect, P1)

defect

Tracking

(firefox79 fixed)

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: ahal, Assigned: gbrown)

References

(Blocks 2 open bugs)

Details

(Whiteboard: dev-prod-2020)

Attachments

(1 file)

Running |mach test cppunittest| results in an error:
KeyError: u'test_files'

  File "/home/ahal/hg/mozilla-central/testing/mach_commands.py", line 102, in test
    argv=extra_args, **suite['kwargs'])
  File "/home/ahal/hg/mozilla-central/python/mach/mach/registrar.py", line 129, in dispatch
    return self._run_command_handler(handler, context=context, **kwargs)
  File "/home/ahal/hg/mozilla-central/python/mach/mach/registrar.py", line 90, in _run_command_handler
    result = fn(**kwargs)
  File "/home/ahal/hg/mozilla-central/testing/mach_commands.py", line 155, in run_cppunit_test
    tests = params['test_files']

Also, when specifying paths cppunittests don't seem to be picked up.
Component: General → CPPUnitTest

Confirmed I get the same error today.

Assignee: nobody → gbrown
Blocks: mach-busted
Severity: normal → S3
Priority: -- → P1
Whiteboard: dev-prod-2020

Correct typo in parameter name to enable 'mach test cppunittest'.

Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5899d2b37513
Fix 'mach test cppunittest'; r=jmaher
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: