[master 4/8] Test glade translations by default

dashea installerbot-noreply at redhat.com
Thu Nov 5 20:12: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 0137ca6..85e68f8 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/bdb855f7743dfd77bc17cf0516cc7971ce4d8e6a


More information about the anaconda-patches mailing list