richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
be3800
From 7e0f8e0f9c6790f2c2954d2102a478953e7a74af Mon Sep 17 00:00:00 2001
be3800
From: Yu Watanabe <watanabe.yu+github@gmail.com>
be3800
Date: Wed, 19 Sep 2018 10:54:28 +0900
be3800
Subject: [PATCH] test: make install_keymaps() optionally install more keymaps
be3800
be3800
(cherry picked from commit ad931fee506e1313e8a520ae0ecc1c8e275d9941)
be3800
(cherry picked from commit bc06966ff3d335102287a4d0ec525e527bc6a139)
be3800
be3800
Resolves: #1836979
be3800
---
be3800
 test/test-functions | 10 ++++++++++
be3800
 1 file changed, 10 insertions(+)
be3800
be3800
diff --git a/test/test-functions b/test/test-functions
be3800
index 546928c516..0938e6e826 100644
be3800
--- a/test/test-functions
be3800
+++ b/test/test-functions
be3800
@@ -630,6 +630,16 @@ install_keymaps() {
be3800
             [[ -f $i ]] || continue
be3800
             inst $i
be3800
     done
be3800
+
be3800
+    # When it takes any argument, then install more keymaps.
be3800
+    if [[ -n $1 ]]; then
be3800
+        for i in \
be3800
+        /usr/lib/kbd/keymaps/i386/*/* \
be3800
+        /usr/lib/kbd/keymaps/legacy/i386/*/*; do
be3800
+            [[ -f $i ]] || continue
be3800
+            inst $i
be3800
+        done
be3800
+    fi
be3800
 }
be3800
 
be3800
 install_zoneinfo() {