##// END OF EJS Templates
tests: use $DAEMON_PIDS and killdaemons in largefiles test...
Thomas Arendsen Hein -
r15378:fbebc039 stable
parent child Browse files
Show More
@@ -742,7 +742,8 b' vanilla clients not locked out from larg'
742 $ hg add f1
742 $ hg add f1
743 $ hg com -m "m1"
743 $ hg com -m "m1"
744 $ cd ..
744 $ cd ..
745 $ hg serve -R r1 -d -p $HGPORT --pid-file serve.pid
745 $ hg serve -R r1 -d -p $HGPORT --pid-file hg.pid
746 $ cat hg.pid >> $DAEMON_PIDS
746 $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT r2
747 $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT r2
747 requesting all changes
748 requesting all changes
748 adding changesets
749 adding changesets
@@ -751,11 +752,11 b' vanilla clients not locked out from larg'
751 added 1 changesets with 1 changes to 1 files
752 added 1 changesets with 1 changes to 1 files
752 updating to branch default
753 updating to branch default
753 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
754 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
754 $ kill `cat serve.pid`
755
755
756 largefiles clients still work with vanilla servers
756 largefiles clients still work with vanilla servers
757 $ hg --config extensions.largefiles=! serve -R r1 -d -p $HGPORT --pid-file serve.pid
757 $ hg --config extensions.largefiles=! serve -R r1 -d -p $HGPORT1 --pid-file hg.pid
758 $ hg clone http://localhost:$HGPORT r3
758 $ cat hg.pid >> $DAEMON_PIDS
759 $ hg clone http://localhost:$HGPORT1 r3
759 requesting all changes
760 requesting all changes
760 adding changesets
761 adding changesets
761 adding manifests
762 adding manifests
@@ -763,7 +764,6 b' largefiles clients still work with vanil'
763 added 1 changesets with 1 changes to 1 files
764 added 1 changesets with 1 changes to 1 files
764 updating to branch default
765 updating to branch default
765 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
766 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
766 $ kill `cat serve.pid`
767
767
768 vanilla clients locked out from largefiles http repos
768 vanilla clients locked out from largefiles http repos
769 $ mkdir r4
769 $ mkdir r4
@@ -773,15 +773,18 b' vanilla clients locked out from largefil'
773 $ hg add --large f1
773 $ hg add --large f1
774 $ hg com -m "m1"
774 $ hg com -m "m1"
775 $ cd ..
775 $ cd ..
776 $ hg serve -R r4 -d -p $HGPORT --pid-file serve.pid
776 $ hg serve -R r4 -d -p $HGPORT2 --pid-file hg.pid
777 $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT r5
777 $ cat hg.pid >> $DAEMON_PIDS
778 $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT2 r5
778 abort: remote error:
779 abort: remote error:
779
780
780 This repository uses the largefiles extension.
781 This repository uses the largefiles extension.
781
782
782 Please enable it in your Mercurial config file.
783 Please enable it in your Mercurial config file.
783 [255]
784 [255]
784 $ kill `cat serve.pid`
785
786 used all HGPORTs, kill all daemons
787 $ "$TESTDIR/killdaemons.py"
785
788
786 vanilla clients locked out from largefiles ssh repos
789 vanilla clients locked out from largefiles ssh repos
787 $ hg --config extensions.largefiles=! clone -e "python $TESTDIR/dummyssh" ssh://user@dummy/r4 r5
790 $ hg --config extensions.largefiles=! clone -e "python $TESTDIR/dummyssh" ssh://user@dummy/r4 r5
@@ -812,14 +815,14 b' largefiles clients refuse to push largef'
812 $ echo c2 > f2
815 $ echo c2 > f2
813 $ hg add --large f2
816 $ hg add --large f2
814 $ hg com -m "m2"
817 $ hg com -m "m2"
815 $ hg --config extensions.largefiles=! -R ../r6 serve -d -p $HGPORT --pid-file ../serve.pid
818 $ hg --config extensions.largefiles=! -R ../r6 serve -d -p $HGPORT --pid-file ../hg.pid
819 $ cat ../hg.pid >> $DAEMON_PIDS
816 $ hg push http://localhost:$HGPORT
820 $ hg push http://localhost:$HGPORT
817 pushing to http://localhost:$HGPORT/
821 pushing to http://localhost:$HGPORT/
818 searching for changes
822 searching for changes
819 abort: http://localhost:$HGPORT/ does not appear to be a largefile store
823 abort: http://localhost:$HGPORT/ does not appear to be a largefile store
820 [255]
824 [255]
821 $ cd ..
825 $ cd ..
822 $ kill `cat serve.pid`
823
826
824 $ cd ..
827 $ cd ..
825
828
General Comments 0
You need to be logged in to leave comments. Login now