mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #131458 from primeos/nixos-tests-chromium
nixos/tests/chromium: Drop the workaround for Chrome GPU crashes
This commit is contained in:
commit
73b3509046
@ -80,12 +80,8 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
|
||||
binary = pname
|
||||
# Add optional CLI options:
|
||||
options = []
|
||||
major_version = "${versions.major (getVersion chromiumPkg.name)}"
|
||||
if major_version > "91" and pname.startswith("google-chrome"):
|
||||
# To avoid a GPU crash:
|
||||
options += ["--use-gl=angle", "--use-angle=swiftshader"]
|
||||
options.append("file://${startupHTML}")
|
||||
# Launch the process:
|
||||
options.append("file://${startupHTML}")
|
||||
machine.succeed(ru(f'ulimit -c unlimited; {binary} {shlex.join(options)} & disown'))
|
||||
if binary.startswith("google-chrome"):
|
||||
# Need to click away the first window:
|
||||
|
Loading…
Reference in New Issue
Block a user