nixos/tests/fctix: remove trailing whitespace

This commit is contained in:
zowoq 2020-11-22 17:17:08 +10:00
parent e87f0c33df
commit bbcbaeb54d

View File

@ -1,15 +1,15 @@
import ../make-test-python.nix ( import ../make-test-python.nix (
{ {
pkgs, ... pkgs, ...
}: }:
# copy_from_host works only for store paths # copy_from_host works only for store paths
rec { rec {
name = "fcitx"; name = "fcitx";
machine = machine =
{ {
pkgs, pkgs,
... ...
}: }:
{ {
virtualisation.memorySize = 1024; virtualisation.memorySize = 1024;
@ -19,11 +19,11 @@ import ../make-test-python.nix (
environment.systemPackages = [ environment.systemPackages = [
# To avoid clashing with xfce4-terminal # To avoid clashing with xfce4-terminal
pkgs.alacritty pkgs.alacritty
]; ];
services.xserver = services.xserver =
{ {
enable = true; enable = true;
@ -37,7 +37,7 @@ import ../make-test-python.nix (
desktopManager.xfce.enable = true; desktopManager.xfce.enable = true;
}; };
i18n = { i18n = {
inputMethod = { inputMethod = {
enabled = "fcitx"; enabled = "fcitx";
@ -50,14 +50,14 @@ import ../make-test-python.nix (
} }
; ;
testScript = { nodes, ... }: testScript = { nodes, ... }:
let let
user = nodes.machine.config.users.users.alice; user = nodes.machine.config.users.users.alice;
userName = user.name; userName = user.name;
userHome = user.home; userHome = user.home;
xauth = "${userHome}/.Xauthority"; xauth = "${userHome}/.Xauthority";
fcitx_confdir = "${userHome}/.config/fcitx"; fcitx_confdir = "${userHome}/.config/fcitx";
in in
'' ''
# We need config files before login session # We need config files before login session
# So copy first thing # So copy first thing
@ -92,7 +92,7 @@ import ../make-test-python.nix (
machine.send_key("ctrl-alt-shift-u") machine.send_key("ctrl-alt-shift-u")
machine.sleep(5) machine.sleep(5)
machine.sleep(1) machine.sleep(1)
### Search for smiling face ### Search for smiling face
machine.send_chars("smil") machine.send_chars("smil")
machine.sleep(1) machine.sleep(1)