# HG changeset patch # User Pierre-Yves David # Date 1449384579 28800 # Node ID 409a20314c64167167bad738e224c31dc4ba9758 # Parent 8833daddfc3fcaebf3e85d77a8f3f6aaec9d30a9 tests: move the '-hg' postfix for all style tests We had them on 'test-check-code-hg.t' to avoid collision with the test checking 'check-code' itself. Now that this one have been rename, we can safely remove this suffix for all of them. This get them in line with 'check-pyflakes.t'. diff -r 8833daddfc3f -r 409a20314c64 tests/test-check-code-hg.t --- a/tests/test-check-code-hg.t Sat Dec 05 22:47:26 2015 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -#require test-repo - - $ check_code="$TESTDIR"/../contrib/check-code.py - $ cd "$TESTDIR"/.. - -New errors are not allowed. Warnings are strongly discouraged. -(The writing "no-che?k-code" is for not skipping this file when checking.) - - $ hg locate | sed 's-\\-/-g' | - > xargs "$check_code" --warnings --per-file=0 || false - Skipping hgext/zeroconf/Zeroconf.py it has no-che?k-code (glob) - Skipping i18n/polib.py it has no-che?k-code (glob) - Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob) - Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob) - Skipping mercurial/httpclient/socketutil.py it has no-che?k-code (glob) diff -r 8833daddfc3f -r 409a20314c64 tests/test-check-code.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-check-code.t Sat Dec 05 22:49:39 2015 -0800 @@ -0,0 +1,15 @@ +#require test-repo + + $ check_code="$TESTDIR"/../contrib/check-code.py + $ cd "$TESTDIR"/.. + +New errors are not allowed. Warnings are strongly discouraged. +(The writing "no-che?k-code" is for not skipping this file when checking.) + + $ hg locate | sed 's-\\-/-g' | + > xargs "$check_code" --warnings --per-file=0 || false + Skipping hgext/zeroconf/Zeroconf.py it has no-che?k-code (glob) + Skipping i18n/polib.py it has no-che?k-code (glob) + Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob) + Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob) + Skipping mercurial/httpclient/socketutil.py it has no-che?k-code (glob) diff -r 8833daddfc3f -r 409a20314c64 tests/test-check-commit-hg.t --- a/tests/test-check-commit-hg.t Sat Dec 05 22:47:26 2015 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -#require test-repo - -Enable obsolescence to avoid the warning issue when obsmarker are found - - $ cat >> $HGRCPATH << EOF - > [experimental] - > evolution=createmarkers - > EOF - -Go back in the hg repo - - $ cd $TESTDIR/.. - - $ for node in `hg log --rev 'draft() and ::.' --template '{node|short}\n'`; do - > hg export $node | contrib/check-commit > ${TESTTMP}/check-commit.out - > if [ $? -ne 0 ]; then - > echo "Revision $node does not comply to rules" - > echo '------------------------------------------------------' - > cat ${TESTTMP}/check-commit.out - > echo - > fi - > done - - diff -r 8833daddfc3f -r 409a20314c64 tests/test-check-commit.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-check-commit.t Sat Dec 05 22:49:39 2015 -0800 @@ -0,0 +1,24 @@ +#require test-repo + +Enable obsolescence to avoid the warning issue when obsmarker are found + + $ cat >> $HGRCPATH << EOF + > [experimental] + > evolution=createmarkers + > EOF + +Go back in the hg repo + + $ cd $TESTDIR/.. + + $ for node in `hg log --rev 'draft() and ::.' --template '{node|short}\n'`; do + > hg export $node | contrib/check-commit > ${TESTTMP}/check-commit.out + > if [ $? -ne 0 ]; then + > echo "Revision $node does not comply to rules" + > echo '------------------------------------------------------' + > cat ${TESTTMP}/check-commit.out + > echo + > fi + > done + + diff -r 8833daddfc3f -r 409a20314c64 tests/test-check-config-hg.t --- a/tests/test-check-config-hg.t Sat Dec 05 22:47:26 2015 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -#require test-repo - - $ cd "$TESTDIR"/.. - -New errors are not allowed. Warnings are strongly discouraged. - - $ hg files "set:(**.py or **.txt) - tests/**" | sed 's|\\|/|g' | - > xargs python contrib/check-config.py diff -r 8833daddfc3f -r 409a20314c64 tests/test-check-config.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-check-config.t Sat Dec 05 22:49:39 2015 -0800 @@ -0,0 +1,8 @@ +#require test-repo + + $ cd "$TESTDIR"/.. + +New errors are not allowed. Warnings are strongly discouraged. + + $ hg files "set:(**.py or **.txt) - tests/**" | sed 's|\\|/|g' | + > xargs python contrib/check-config.py