dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
52b84b
From 8dbd01f7018947fd15d00c25b1aa0ffc72278cb6 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
52b84b
Resolves: #1823767
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() {