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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux