daandemeyer / rpms / systemd

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