build: fix handling NMTST_SKIP_PYTHON_BLACK for skipping make check-python-black test

Fixes: c537852231 ('build: optionally skip python black check by setting NMTST_SKIP_PYTHON_BLACK=1')
This commit is contained in:
Thomas Haller 2020-11-10 20:20:33 +01:00
parent 71eeec8c78
commit ebbc2c9c0d
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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