Run API and ACI under Python 2 and 3

Make it possible to run API, ACI, and potests under Python 3.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes
2018-02-15 09:41:30 +01:00
parent 8ffa33c24e
commit a319a378d7
2 changed files with 14 additions and 10 deletions
+4 -3
View File
@@ -6,6 +6,7 @@ DISTFILES.common.extra3 = Makefile.hack.in
IPA_TEST_I18N = @top_srcdir@/ipatests/i18n.py
MSGATTRIB = @MSGATTRIB@
PYTHON = @PYTHON@
.PHONY: strip-po
strip-po:
@@ -24,13 +25,13 @@ clean: mostlyclean
# linters
test-gettext: $(DOMAIN).pot
$(IPA_TEST_I18N) --test-gettext
$(PYTHON) $(IPA_TEST_I18N) --test-gettext
validate-pot: $(DOMAIN).pot
$(IPA_TEST_I18N) --show-strings --validate-pot $(DOMAIN).pot
$(PYTHON) $(IPA_TEST_I18N) --show-strings --validate-pot $(DOMAIN).pot
validate-po: $(DOMAIN).pot
$(IPA_TEST_I18N) --show-strings --validate-po $(POFILES)
$(PYTHON) $(IPA_TEST_I18N) --show-strings --validate-po $(POFILES)
# forcefully re-generate .pot file and test it
validate-src-strings: $(DOMAIN).pot-update