Merge pull request #144099 from primeos/nixos-tests-chromium
nixos/tests/chromium: Add a workaround to fix the test for M96+
This commit is contained in:
commit
22fa348963
@ -80,6 +80,10 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
|
||||
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")
|
||||
# Launch the process:
|
||||
options.append("file://${startupHTML}")
|
||||
machine.succeed(ru(f'ulimit -c unlimited; {binary} {shlex.join(options)} & disown'))
|
||||
|
Loading…
Reference in New Issue
Block a user