Unverified Commit 5389fbe7 authored by Michael Weiss's avatar Michael Weiss
Browse files

nixos/tests/chromium: Disable a failing test for M107+

I haven't had time to look into this yet but it looks like opening chrome://gpu
doesn't work anymore without proper GPU rendering (we use software rendering
due to the virtualisation).
According to the console output the new window never opens (at least with
Google Chrome - I couldn't test it with Chromium yet due to the failing builds
for M107 and M108):
```
(finished: sending keys ‘chrome://gpu
‘, in 0.14 seconds)
machine: waiting for a window to appear
machine: must succeed: xwininfo -root -tree | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d'
(finished: must succeed: xwininfo -root -tree | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d', in 0.05 seconds)
machine # Error: eglChooseConfig returned zero configs
machine #     at Create (../../third_party/dawn/src/dawn/native/opengl/ContextEGL.cpp:53)
machine #
machine: must succeed: xwininfo -root -tree | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d'
machine # WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
(finished: must succeed: xwininfo -root -tree | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d', in 0.06 seconds)
machine: must succeed: xwininfo -root -tree | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d'
(finished: must succeed: xwininfo -root -tree | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d', in 0.09 seconds)
[...]
```
parent 0fa4d177
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -67,6 +67,9 @@ mapAttrs (channel: chromiumPkg: makeTest {
    from contextlib import contextmanager


    major_version = "${versions.major (getVersion chromiumPkg.name)}"


    # Run as user alice
    def ru(cmd):
        return "su - ${user} -c " + shlex.quote(cmd)
@@ -86,7 +89,6 @@ mapAttrs (channel: chromiumPkg: makeTest {
            binary = pname
        # Add optional CLI options:
        options = []
        major_version = "${versions.major (getVersion chromiumPkg.name)}"
        if major_version > "95" and not pname.startswith("google-chrome"):
            # Workaround to avoid a GPU crash:
            options.append("--use-gl=swiftshader")
@@ -244,6 +246,8 @@ mapAttrs (channel: chromiumPkg: makeTest {
        machine.screenshot("after_copy_from_chromium")


    if major_version < "107":
        # TODO: Fix the chrome://gpu test for M107+
        with test_new_win("gpu_info", "chrome://gpu", "chrome://gpu"):
            # To check the text rendering (catches regressions like #131074):
            machine.wait_for_text("Graphics Feature Status")