# HG changeset patch # User Anton Shestakov # Date 1613605178 -28800 # Node ID fe9f9e528a42ee7c7f74efdd0cc9c3277071a103 # Parent c84924d6df3575397b449d9f27be68e0cfabb7a1 tests: make test-check-sdist.t less flaky by first archiving the repo diff -r c84924d6df35 -r fe9f9e528a42 tests/test-check-sdist.t --- a/tests/test-check-sdist.t Mon Feb 22 15:34:15 2021 -0800 +++ b/tests/test-check-sdist.t Thu Feb 18 07:39:38 2021 +0800 @@ -1,5 +1,3 @@ -#require test-repo - Enable obsolescence to avoid the warning issue when obsmarkers are found $ cat << EOF >> "$HGRCPATH" @@ -8,6 +6,16 @@ > EOF $ cd "$TESTDIR"/.. + +Archiving to a separate location to avoid hardlink mess when the repo is shared + +#if test-repo + + $ hg archive "$TESTTMP"/hg-evolve + $ cd "$TESTTMP"/hg-evolve + +#endif + $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) warnings.warn(msg)