forge
Explore
Log in

Don't you dare go Hollow

flake: skip tests that require a valid EGL display (#2244)

Browse files at this commit

38df8d4f33c0caa2e6edca85c1e25debcc4fa1beUnverifiedCole Helbling and Ivan MolodetskikhParent: 6d0505e
* flake: skip tests that require a valid EGL display

Otherwise:

    niri> failures:
    niri>
    niri> ---- tests::animations::clientside_height_change_doesnt_animate stdout ----
    niri>
    niri> thread 'tests::animations::clientside_height_change_doesnt_animate' panicked at src/tests/animations.rs:87:54:
    niri> called `Result::unwrap()` on an `Err` value: error creating EGL display
    niri>
    niri> Caused by:
    niri>     Unable to obtain a valid EGL Display.
    niri> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    niri>
    niri> ---- tests::animations::height_resize_animates_next_y stdout ----
    niri>
    niri> thread 'tests::animations::height_resize_animates_next_y' panicked at src/tests/animations.rs:87:54:
    niri> called `Result::unwrap()` on an `Err` value: error creating EGL display
    niri>
    niri> Caused by:
    niri>     Unable to obtain a valid EGL Display.
    niri>
    niri>
    niri> failures:
    niri>     tests::animations::clientside_height_change_doesnt_animate
    niri>     tests::animations::height_resize_animates_next_y
    niri>
    niri> test result: FAILED. 147 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.45s

* flake: skip all animations tests, present and future

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

* fixup: typo

---------
flake.nixmodified+6 -0
@@ -115,6 +115,12 @@
115 export XDG_RUNTIME_DIR="$(mktemp -d)"115 export XDG_RUNTIME_DIR="$(mktemp -d)"
116 '';116 '';
117 117
118+ checkFlags = [
119+ # These tests require the ability to access a "valid EGL Display", but that won't work
120+ # inside the Nix sandbox
121+ "--skip=tests::animations"
122+ ];
123+
118 postInstall =124 postInstall =
119 ''125 ''
120 installShellCompletion --cmd niri \126 installShellCompletion --cmd niri \