Open Bug 1914127 Opened 2 months ago

[wpt-sync] Sync PR 47708 - Specify cwd when getting chrome version and running webdriver.

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 47708 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/47708
Details from upstream follow.

Takashi Sakamoto <tasak@google.com> wrote:

Specify cwd when getting chrome version and running webdriver.

The webdriver binary's elf interpreter's path may be relative. In the case, if the current working directory is different from the binary's, exec system call will fail because of ENOENT (No such file or directory).
To avoid the issue, specify cwd=os.path.dirname(the binary's path) when calling subprocess.
(The chromium issue is crbug/360008882)

You need to log in before you can comment on or make changes to this bug.