comparison tests/test-check-sdist.t @ 5799:fe9f9e528a42

tests: make test-check-sdist.t less flaky by first archiving the repo
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 18 Feb 2021 07:39:38 +0800
parents 43a5371fa669
children 837b9fee065e
comparison
equal deleted inserted replaced
5796:c84924d6df35 5799:fe9f9e528a42
1 #require test-repo
2
3 Enable obsolescence to avoid the warning issue when obsmarkers are found 1 Enable obsolescence to avoid the warning issue when obsmarkers are found
4 2
5 $ cat << EOF >> "$HGRCPATH" 3 $ cat << EOF >> "$HGRCPATH"
6 > [experimental] 4 > [experimental]
7 > evolution = all 5 > evolution = all
8 > EOF 6 > EOF
9 7
10 $ cd "$TESTDIR"/.. 8 $ cd "$TESTDIR"/..
9
10 Archiving to a separate location to avoid hardlink mess when the repo is shared
11
12 #if test-repo
13
14 $ hg archive "$TESTTMP"/hg-evolve
15 $ cd "$TESTTMP"/hg-evolve
16
17 #endif
18
11 $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null 19 $ "$PYTHON" setup.py sdist --dist-dir "$TESTTMP"/dist > /dev/null
12 */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob) 20 */dist.py:*: UserWarning: Unknown distribution option: 'python_requires' (glob)
13 warnings.warn(msg) 21 warnings.warn(msg)
14 warning: sdist: standard file not found: should have one of README, README.txt (?) 22 warning: sdist: standard file not found: should have one of README, README.txt (?)
15 (?) 23 (?)