summary refs log tree commit diff
path: root/nixos/tests/cage.nix
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2021-04-30 15:34:54 +0200
committerMichael Weiss <dev.primeos@gmail.com>2021-04-30 15:57:04 +0200
commit28b8cff301f356a7a24be1b6203f6a2e3a814e7d (patch)
treeca5e7d8666099af27457dff839e4dbb1d721bc9c /nixos/tests/cage.nix
parent4263479d3e02a47584d489b48b3bd39efd1337c7 (diff)
downloadnixpkgs-28b8cff301f356a7a24be1b6203f6a2e3a814e7d.tar
nixpkgs-28b8cff301f356a7a24be1b6203f6a2e3a814e7d.tar.gz
nixpkgs-28b8cff301f356a7a24be1b6203f6a2e3a814e7d.tar.bz2
nixpkgs-28b8cff301f356a7a24be1b6203f6a2e3a814e7d.tar.lz
nixpkgs-28b8cff301f356a7a24be1b6203f6a2e3a814e7d.tar.xz
nixpkgs-28b8cff301f356a7a24be1b6203f6a2e3a814e7d.tar.zst
nixpkgs-28b8cff301f356a7a24be1b6203f6a2e3a814e7d.zip
nixos/tests/cage: Fix the test with wlroots 0.13
See #119615 for more details. The aarch64-linux test failed with
"qemu-system-aarch64: Virtio VGA not available" so I've restricted the
test to x86_64-linux (the virtio paravirtualized 3D graphics driver is
likely only available on very few platforms).
Diffstat (limited to 'nixos/tests/cage.nix')
-rw-r--r--nixos/tests/cage.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/tests/cage.nix b/nixos/tests/cage.nix
index 69cc76d315f..53476c2fbe8 100644
--- a/nixos/tests/cage.nix
+++ b/nixos/tests/cage.nix
@@ -25,6 +25,11 @@ import ./make-test-python.nix ({ pkgs, ...} :
   testScript = { nodes, ... }: let
     user = nodes.machine.config.users.users.alice;
   in ''
+    # Need to switch to a different VGA card / GPU driver because Cage segfaults with the default one (std):
+    # machine # [   14.355893] .cage-wrapped[736]: segfault at 20 ip 00007f035fa0d8c7 sp 00007ffce9e4a2f0 error 4 in libwlroots.so.8[7f035fa07000+5a000]
+    # machine # [   14.358108] Code: 4f a8 ff ff eb aa 0f 1f 44 00 00 c3 0f 1f 80 00 00 00 00 41 54 49 89 f4 55 31 ed 53 48 89 fb 48 8d 7f 18 48 8d 83 b8 00 00 00 <80> 7f 08 00 75 0d 48 83 3f 00 0f 85 91 00 00 00 48 89 fd 48 83 c7
+    os.environ["QEMU_OPTS"] = "-vga virtio"
+
     with subtest("Wait for cage to boot up"):
         start_all()
         machine.wait_for_file("/run/user/${toString user.uid}/wayland-0.lock")