diff --git a/Makefile.am b/Makefile.am index dce16fe8c8..e05f759bbc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5329,7 +5329,7 @@ include Makefile.examples if WITH_PYTHON_BLACK check-python-black: - test "$$NMTST_SKIP_PYTHON_BLACK" != 1 && $(BLACK) --check $(top_srcdir) $(top_srcdir)/examples/python/gi/nm-wg-set + test "$$NMTST_SKIP_PYTHON_BLACK" == 1 || $(BLACK) --check $(top_srcdir) $(top_srcdir)/examples/python/gi/nm-wg-set check_local += check-python-black endif