Skip to content

Commit 199c3ea

Browse files
authored
repath-studio: fix nixos test (#503262)
2 parents 16d0752 + cc1cf14 commit 199c3ea

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

nixos/tests/repath-studio.nix

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525
repath-studio
2626
];
2727

28-
# electron application, give more memory
28+
# electron application, give more memory and cpu
2929
virtualisation.memorySize = 4096;
30+
virtualisation.cores = 4;
31+
virtualisation.qemu.options = [
32+
# Force qemu at 1020x768 resolution for the Save button click
33+
"-vga none -device virtio-gpu-pci,xres=1020,yres=768"
34+
];
3035
};
3136
};
3237

@@ -52,7 +57,9 @@
5257
machine.sleep(2)
5358
machine.send_key("ctrl-shift-s")
5459
machine.sleep(2)
55-
machine.send_chars("/tmp/saved.rps\n")
60+
machine.send_chars("/tmp/saved.rps")
61+
machine.sleep(2)
62+
machine.succeed("su - alice -c 'DISPLAY=:0 xdotool mousemove --sync 975 745 click 1'") # Save file dialog
5663
machine.sleep(2)
5764
print(machine.succeed("cat /tmp/saved.rps"))
5865
assert "${pkgs.repath-studio.version}" in machine.succeed("cat /tmp/saved.rps")

0 commit comments

Comments
 (0)