[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[rhel6-branch 1/2] Fix loadkeys-test (#706099)



Because of commit 1242005618d209519b1dfe4ce46b37502ac75783
loadkeys should always exit with return code 0,
even when loading a non-existing keymap.
---
 command-stubs/loadkeys-test |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/command-stubs/loadkeys-test b/command-stubs/loadkeys-test
index dda718d..d01e127 100644
--- a/command-stubs/loadkeys-test
+++ b/command-stubs/loadkeys-test
@@ -31,7 +31,7 @@ def loadkeys_test():
 
     # non-existing keymap
     rc = call(['loadkeys', 'bad-keymap'])
-    if rc == 0:
+    if not rc == 0:
         print('loadkeys: load non-existing keymap test failed')
         sys.exit(1)
 
-- 
1.7.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]