sapling/tests/test-fb-hgext-infinitepush-backup-logging.t
Saurabh Singh 551e557862 infinitepush: move library-infinitepush.sh to infinitepush/library.sh
Summary: Makes more sense to have this structure after D6691821.

Test Plan: Ran all the tests.

Reviewers: quark, #mercurial, #sourcecontrol

Reviewed By: quark

Differential Revision: https://phabricator.intern.facebook.com/D6694171

Signature: 6694171:1515609818:1142419346e3458db7674b1b69036d88e82a1903
2018-01-10 10:44:15 -08:00

29 lines
641 B
Perl

$ . "$TESTDIR/library.sh"
$ . "$TESTDIR/infinitepush/library.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