[master 3/6] Test glade translations by default

dashea installerbot-noreply at redhat.com
Wed Nov 4 22:03:32 UTC 2015


From: David Shea <dshea at redhat.com>

These are the kinds of errors that crash anaconda if we hit them, so we
might as well find out sooner rather than later.
---
 tests/lib/gladecheck.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/lib/gladecheck.py b/tests/lib/gladecheck.py
index a6d5bf9..7a3318b 100644
--- a/tests/lib/gladecheck.py
+++ b/tests/lib/gladecheck.py
@@ -108,7 +108,9 @@ def options(self, parser, env):
 
         parser.add_option("--glade-file", action="append",
                 help="Glade file(s) to test. If none specified, all files will be tested")
-        parser.add_option("--translate", action="store_true", default=False,
+        parser.add_option("--notranslate", dest="translate", action="store_false", default=True,
+                help="Do not test translations of glade files")
+        parser.add_option("--translate", action="store_true",
                 help="Test glade files with translations")
         parser.add_option("--podir", action="store", type=str,
                 default=os.environ.get('top_srcdir', '.') + "/po",


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/bb5d1156f26d7668d47bd9dc3002e56d754ced33


More information about the anaconda-patches mailing list