Open Bug 1752315 Opened 8 months ago Updated 6 months ago

running |mach mochitest --appname path/to/firefox test_name.js| fails with AssertionError in getActiveTests assert pathAbs.startswith(self.testRootAbs)

Categories

(Testing :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: aryx, Unassigned)

References

Details

It has been some time since I ran mozilla-central mochitests locally on Windows 8.1.

mach clobber
mach configure
mach mochitest --appname /f/Ablage/Temp/Trash/fx-useragent/firefox.exe browser_navigator.js

This fails with

0:52.88 INFO Checking for ssltunnel processes...
0:53.06 INFO Checking for xpcshell processes...
Error running mach:

['mochitest', '--appname', 'f:/Ablage/Temp/Trash/fx-useragent/firefox.exe', 'browser_navigator.js']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file mochitest| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

AssertionError

File "c:\Mozilla\Coding\Code\mozilla-central\testing/mochitest/mach_commands.py", line 503, in run_mochitest_general
command_context._mach_context, tests=tests, **harness_args
File "c:\Mozilla\Coding\Code\mozilla-central\testing/mochitest/mach_commands.py", line 147, in run_desktop_test
result = mochitest.run_test_harness(parser, options)
File "c:\Mozilla\Coding\Code\mozilla-central\testing\mochitest\runtests.py", line 3604, in run_test_harness
result = runner.runTests(options)
File "c:\Mozilla\Coding\Code\mozilla-central\testing\mochitest\runtests.py", line 2921, in runTests
tests = self.getActiveTests(options)
File "c:\Mozilla\Coding\Code\mozilla-central\testing\mochitest\runtests.py", line 1610, in getActiveTests
assert pathAbs.startswith(self.testRootAbs)

Sentry event ID: 0891e39582a54ba7b678bd37a83c4bee
Sentry is attempting to send 0 pending error messages
Waiting up to 2 seconds
Press Ctrl-Break to quit
Product: Firefox Build System → Testing

The severity field is not set for this bug.
:ahal, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(ahal)

Does this also happen without --appname?

Severity: -- → S3
Flags: needinfo?(ahal)

This fails because something is missing from the object directory:

  1. mach clobber && mach build && mach mochitest browser_navigator.js succeeds.
  2. mach mochitest browser_navigator.js --appname /f/Ablage/Temp/Trash/firefox/firefox.exe afterwards succeeds.
  3. mach clobber && mach configure && mach mochitest browser_navigator.js --appname /f/Ablage/Temp/Trash/firefox/firefox.exe fails.
See Also: → 1764947
You need to log in before you can comment on or make changes to this bug.