cbor: fix core test-check*
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 26 Mar 2018 08:32:21 -0700
changeset 37127 0e06d8086295
parent 37126 4bd73a955ab0
child 37128 1236beb5d150
cbor: fix core test-check* This patch fixes couple of test-check* tests by making sure they skip testing the third party library cbor. Differential Revision: https://phab.mercurial-scm.org/D2751
tests/test-check-py3-compat.t
tests/test-check-pyflakes.t
--- a/tests/test-check-py3-compat.t	Mon Mar 26 08:33:57 2018 -0700
+++ b/tests/test-check-py3-compat.t	Mon Mar 26 08:32:21 2018 -0700
@@ -5,6 +5,7 @@
 
   $ testrepohg files 'set:(**.py)' \
   > -X hgdemandimport/demandimportpy2.py \
+  > -X mercurial/thirdparty/cbor \
   > | sed 's|\\|/|g' | xargs $PYTHON contrib/check-py3-compat.py
   contrib/python-zstandard/setup.py not using absolute_import
   contrib/python-zstandard/setup_zstd.py not using absolute_import
--- a/tests/test-check-pyflakes.t	Mon Mar 26 08:33:57 2018 -0700
+++ b/tests/test-check-pyflakes.t	Mon Mar 26 08:32:21 2018 -0700
@@ -16,6 +16,7 @@
   $ testrepohg locate 'set:**.py or grep("^#!.*python")' \
   > -X hgext/fsmonitor/pywatchman \
   > -X mercurial/pycompat.py -X contrib/python-zstandard \
+  > -X mercurial/thirdparty/cbor \
   > 2>/dev/null \
   > | xargs pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"