about summary refs log tree commit diff
path: root/nixos/tests/breitbandmessung.nix
diff options
context:
space:
mode:
authorFabian Möller <fabianm88@gmail.com>2022-01-27 14:39:02 +0100
committerFabian Möller <fabianm88@gmail.com>2022-01-27 14:39:02 +0100
commit9ec1d80c55807213d54548708c52a8c1c9a7df4a (patch)
treee367536f2934a7d227da25cca5a9c6c207788111 /nixos/tests/breitbandmessung.nix
parent487aa0781d2151e5be83f0f39f73c3941ba24028 (diff)
nixos/tests/breitbandmessung: use virtualisation.resolution option
Diffstat (limited to 'nixos/tests/breitbandmessung.nix')
-rw-r--r--nixos/tests/breitbandmessung.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/tests/breitbandmessung.nix b/nixos/tests/breitbandmessung.nix
index 0ad82d45331d0..12b1a094839be 100644
--- a/nixos/tests/breitbandmessung.nix
+++ b/nixos/tests/breitbandmessung.nix
@@ -8,6 +8,9 @@ import ./make-test-python.nix ({ lib, ... }: {
       ./common/x11.nix
     ];
 
+    # increase screen size to make the whole program visible
+    virtualisation.resolution = { x = 1280; y = 1024; };
+
     test-support.displayManager.auto.user = "alice";
 
     environment.systemPackages = with pkgs; [ breitbandmessung ];
@@ -21,8 +24,6 @@ import ./make-test-python.nix ({ lib, ... }: {
 
   testScript = ''
     machine.wait_for_x()
-    # increase screen size to make the whole program visible
-    machine.succeed("xrandr --output Virtual-1 --mode 1280x1024")
     machine.execute("su - alice -c breitbandmessung >&2  &")
     machine.wait_for_window("Breitbandmessung")
     machine.wait_for_text("Breitbandmessung")