Mercurial > evolve
comparison tests/test-check-compat-strings.t @ 5350:73cd416a1653
tests: replace check-compat-strings.sh with a Python script
Previously it was a bash script (using BASH_REMATCH, for example) that was used
in tests, and we want our tests as portable as possible, so mostly that is the
reason for this rewrite.
It's also easier to add a cache to the Python version, which reduces the run
time: from ~10s to ~5.5s.
Another change worth mentioning is filtering the list of files to be only .py
files. We don't currently have compat comments in any other files.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 29 May 2020 13:23:45 +0800 |
parents | 3c5bcb8ecf3a |
children |
comparison
equal
deleted
inserted
replaced
5349:c3d87d106fbe | 5350:73cd416a1653 |
---|---|
3 $ cat << EOF >> $HGRCPATH | 3 $ cat << EOF >> $HGRCPATH |
4 > [experimental] | 4 > [experimental] |
5 > evolution = all | 5 > evolution = all |
6 > EOF | 6 > EOF |
7 | 7 |
8 $ $TESTDIR/testlib/check-compat-strings.sh "$TESTDIR/../hgext3rd/" "$RUNTESTDIR/.." | 8 $ "$PYTHON" "$TESTDIR/testlib/check-compat-strings.py" \ |
9 > "$TESTDIR/../hgext3rd/" "$RUNTESTDIR/.." |