diff options
author | 2013-09-29 10:27:30 +0530 | |
---|---|---|
committer | 2013-10-14 06:54:47 +0530 | |
commit | e4ee1233952533362b6437cba5d38f95eeb552e9 (patch) | |
tree | 8b656677c72b2385bf3fe40007d6919bc6c6e28e /t | |
parent | emulate 'mktemp -u' because that's not portable (uggh!) (diff) | |
download | gitolite-gentoo-e4ee1233952533362b6437cba5d38f95eeb552e9.tar.gz gitolite-gentoo-e4ee1233952533362b6437cba5d38f95eeb552e9.tar.bz2 gitolite-gentoo-e4ee1233952533362b6437cba5d38f95eeb552e9.zip |
mirroring: async push to slaves...
tested by a few people independently, on ML and on #gitolite
Note that the changes to the (private) test suite use an arbitrary "sleep 5"
to allow the other sides to settle. Without this, there were too many errors
because the test suite was trying the next command before the previous one had
effectively finished.
Diffstat (limited to 't')
-rwxr-xr-x | t/mirror-test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/mirror-test b/t/mirror-test index 6f605b9..627dc74 100755 --- a/t/mirror-test +++ b/t/mirror-test @@ -93,6 +93,7 @@ try " git push; ok /To frodo\@localhost:gitolite-admin/ /master -> master/ + sleep 5 git rev-parse HEAD "; @@ -119,6 +120,7 @@ try " git push; ok /To sam\@localhost:gitolite-admin/ /master -> master/ + sleep 5 git rev-parse HEAD "; @@ -193,6 +195,7 @@ try " git push; ok /To frodo\@localhost:gitolite-admin/ /master -> master/ + sleep 5 sudo -u gollum -i gitolite git-config -r gitolite-admin . ok @@ -235,6 +238,7 @@ try " empty git push origin master /new branch/; /master -> master/ + sleep 5 git rev-parse HEAD "; chomp($t = text()); @@ -261,6 +265,7 @@ try " git push sam\@localhost:r2 master /new branch/; /master -> master/ /master -> master/ + sleep 5 git ls-remote frodo\@localhost:r2 !/$t/ /$t2/ @@ -292,6 +297,7 @@ try " empty git push; ok /master -> master/ + sleep 5 git rev-parse HEAD "; chomp($t = text()); @@ -314,6 +320,7 @@ try " git push -f /\\+ .......\\.\\.\\........ master -> master .forced update/ + sleep 5 "; swk("u2"); @@ -335,6 +342,7 @@ try " tc c git push /master -> master/ + sleep 5 git rev-parse HEAD "; chomp($t = text()); @@ -354,6 +362,7 @@ try " git push -f /\\+ .......\\.\\.\\........ master -> master .forced update/ + sleep 5 cd .. rm -rf fr1 fr2 @@ -367,6 +376,7 @@ try " cd fr2 tc e git push; ok + sleep 5 git rev-parse HEAD "; |