mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
d9f299ffe8
Summary: Now that we moved infinitepush to hgext in D6691670, we can also move the tests. Test Plan: Ran all the tests. Reviewers: stash, #mercurial, #sourcecontrol Reviewed By: stash Differential Revision: https://phabricator.intern.facebook.com/D6691848 Signature: 6691848:1515573470:628d092f14cf3ae21c036883243c80eb3b01aa72
29 lines
641 B
Perl
29 lines
641 B
Perl
|
|
$ . "$TESTDIR/library.sh"
|
|
$ . "$TESTDIR/library-infinitepush.sh"
|
|
$ setupcommon
|
|
|
|
Setup server
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ setupserver
|
|
$ cd ..
|
|
|
|
Clone
|
|
$ hg clone ssh://user@dummy/repo client -q
|
|
$ cd client
|
|
|
|
Create log dir
|
|
$ mkdir $TESTTMP/logs
|
|
|
|
Setup infinitepush backup logging
|
|
$ printf "\n[infinitepushbackup]\nlogdir=$TESTTMP/logs" >> .hg/hgrc
|
|
$ mkcommit first
|
|
|
|
Check that logging fails because of wrong permissions
|
|
$ hg pushbackup --background
|
|
$ waitbgbackup
|
|
$ hg pushbackup --background --debug
|
|
$TESTTMP/logs directory has incorrect permission, infinitepush backup logging will be disabled
|
|
$ waitbgbackup
|