mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
14ec2d4b34
Summary: These now pass Reviewed By: farnz Differential Revision: D19678869 fbshipit-source-id: 68601ff6a6d33b13947210eecfecd999aa2ddb1a
31 lines
642 B
Perl
31 lines
642 B
Perl
#chg-compatible
|
|
|
|
|
|
$ . "$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 background backup logging
|
|
$ setconfig infinitepushbackup.logdir=$TESTTMP/logs
|
|
$ mkcommit first
|
|
|
|
Check that logging fails because of wrong permissions
|
|
$ hg cloud backup --background
|
|
$ waitbgbackup
|
|
$ hg cloud backup --background --debug
|
|
$TESTTMP/logs directory has incorrect permission, background backup logging will be disabled
|
|
$ waitbgbackup
|