Mercurial > hgsubversion
view tests/fixtures/subdir_branches_tags.sh @ 1451:945700dac237
tests: use hostname instead of localhost
The test_push_command test was failing on our machines because the machines are
ipv6 but expose ipv4 on the 127.0.0.1 loopback interface. This caused the
svnserve process to listen via ipv4, but the connecting process would attempt to
connect on ipv6 and fail. Using the hostname causes it to listen using the
primary network interface, which matches the interface that is used when the
connecting client resolves the hostname. So the test now passes.
author | Durham Goode <durham@fb.com> |
---|---|
date | Tue, 07 Jun 2016 14:35:30 -0700 |
parents | 791382a21cc4 |
children |
line wrap: on
line source
#!/usr/bin/env bash set -e mkdir temp cd temp svnadmin create testrepo svn checkout file://`pwd`/testrepo client cd client mkdir trunk mkdir -p bran/ches mkdir -p ta/gs svn add trunk bran ta svn commit -m "Initial commit" echo "trunk" >> trunk/file svn add trunk/file svn commit -m "Added file in trunk" svn cp trunk ta/gs/tag_from_trunk svn ci -m 'created tag from trunk' svn cp trunk bran/ches/branch svn ci -m 'created branch from trunk' echo "branch" > bran/ches/branch/file svn ci -m "committed to the branch" svn cp bran/ches/branch ta/gs/tag_from_branch svn ci -m "create tag from branch" cd .. svnadmin dump testrepo > ../subdir_branches_tags.svndump echo "Created subdir_branches_tags.svndump" echo "You might want to clean up ${PWD} now"