[PATCH 2 of 2 V2] tests/run-tests: use hghave.py

Adrian Buehlmann adrian at cadifra.com
Thu Jun 14 09:01:10 CDT 2012


On 2012-06-14 15:48, Adrian Buehlmann wrote:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1339677848 -7200
> # Node ID e08ba77235ac9abff2ab821b257e42abffa59553
> # Parent  b92c1e526b98c23de4f2fc4e16303e8171b8b861
> tests/run-tests: use hghave.py
> 
> Eliminates the start of a subprocess for #if requirements checking.

Changes to first version:

1) Now lets the test fail like this for a unknown #if feature

  --- C:\Users\adi\hgrepos\hg-main\tests\test-a.t
  +++ C:\Users\adi\hgrepos\hg-main\tests\test-a.t.err
  @@ -3,6 +3,7 @@
     $ pwd
     $TESTTMP
   #if no-symlinko
  +  !!! unknown feature: symlinko
     $ FOO="$TESTTMP"
     $ echo $FOO
   #endif

2) Tracebacks run-tests.py on failure in hghave test functions (per Mads)


More information about the Mercurial-devel mailing list