comparison tests/test-run-tests.t @ 37434:3fbd8b862d66

tests: work around potential repo incompatibility test-run-tests.t invokes run-tests.py. But custom extensions providing new repo requirements may be in play and may not get inherited by the new run-tests.py. We ensure our repo is created with a vanilla config to mitigate extension-caused badness. Differential Revision: https://phab.mercurial-scm.org/D3114
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 04 Apr 2018 17:33:59 -0700
parents a247a0e82e7d
children 1b71a397d6b2
comparison
equal deleted inserted replaced
37433:9168792422a0 37434:3fbd8b862d66
556 [1] 556 [1]
557 $ rm test-serve-fail.t 557 $ rm test-serve-fail.t
558 558
559 Verify that we can try other ports 559 Verify that we can try other ports
560 =================================== 560 ===================================
561 $ hg init inuse 561
562 Extensions aren't inherited by the invoked run-tests.py. An extension
563 introducing a repository requirement could cause this to fail. So we force
564 HGRCPATH to get a clean environment.
565
566 $ HGRCPATH= hg init inuse
562 $ hg serve -R inuse -p $HGPORT -d --pid-file=blocks.pid 567 $ hg serve -R inuse -p $HGPORT -d --pid-file=blocks.pid
563 $ cat blocks.pid >> $DAEMON_PIDS 568 $ cat blocks.pid >> $DAEMON_PIDS
564 $ cat > test-serve-inuse.t <<EOF 569 $ cat > test-serve-inuse.t <<EOF
565 > $ hg serve -R `pwd`/inuse -p \$HGPORT -d --pid-file=hg.pid 570 > $ hg serve -R `pwd`/inuse -p \$HGPORT -d --pid-file=hg.pid
566 > $ cat hg.pid >> \$DAEMON_PIDS 571 > $ cat hg.pid >> \$DAEMON_PIDS