git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/tests/fctix: remove trailing whitespace
bbcbaebzowoq
nixos/tests/fcitx/default.nix+14−14
@@ -1,15 +1,15 @@
1−import ../make-test-python.nix (
1+import ../make-test-python.nix (
2 {
2 {
3 pkgs, ...
3 pkgs, ...
4− }:
4+ }:
5 # copy_from_host works only for store paths
5 # copy_from_host works only for store paths
6 rec {
6 rec {
7 name = "fcitx";
7 name = "fcitx";
8− machine =
8+ machine =
9− {
9+ {
10− pkgs,
10+ pkgs,
11− ...
11+ ...
12− }:
12+ }:
13 {
13 {
14 virtualisation.memorySize = 1024;
14 virtualisation.memorySize = 1024;
15
15
@@ -19,11 +19,11 @@ import ../make-test-python.nix (
19
19
20 environment.systemPackages = [
20 environment.systemPackages = [
21 # To avoid clashing with xfce4-terminal
21 # To avoid clashing with xfce4-terminal
22− pkgs.alacritty
22+ pkgs.alacritty
23 ];
23 ];
24
24
25
25
26− services.xserver =
26+ services.xserver =
27 {
27 {
28 enable = true;
28 enable = true;
29
29
@@ -37,7 +37,7 @@ import ../make-test-python.nix (
37
37
38 desktopManager.xfce.enable = true;
38 desktopManager.xfce.enable = true;
39 };
39 };
40−
40+
41 i18n = {
41 i18n = {
42 inputMethod = {
42 inputMethod = {
43 enabled = "fcitx";
43 enabled = "fcitx";
@@ -50,14 +50,14 @@ import ../make-test-python.nix (
50 }
50 }
51 ;
51 ;
52
52
53− testScript = { nodes, ... }:
53+ testScript = { nodes, ... }:
54− let
54+ let
55 user = nodes.machine.config.users.users.alice;
55 user = nodes.machine.config.users.users.alice;
56 userName = user.name;
56 userName = user.name;
57 userHome = user.home;
57 userHome = user.home;
58 xauth = "${userHome}/.Xauthority";
58 xauth = "${userHome}/.Xauthority";
59 fcitx_confdir = "${userHome}/.config/fcitx";
59 fcitx_confdir = "${userHome}/.config/fcitx";
60− in
60+ in
61 ''
61 ''
62 # We need config files before login session
62 # We need config files before login session
63 # So copy first thing
63 # So copy first thing
@@ -92,7 +92,7 @@ import ../make-test-python.nix (
92 machine.send_key("ctrl-alt-shift-u")
92 machine.send_key("ctrl-alt-shift-u")
93 machine.sleep(5)
93 machine.sleep(5)
94 machine.sleep(1)
94 machine.sleep(1)
95−
95+
96 ### Search for smiling face
96 ### Search for smiling face
97 machine.send_chars("smil")
97 machine.send_chars("smil")
98 machine.sleep(1)
98 machine.sleep(1)