2017-03-14 12:13:16 +03:00
|
|
|
|
|
|
|
$ . "$TESTDIR/library.sh"
|
2018-01-10 21:44:15 +03:00
|
|
|
$ . "$TESTDIR/infinitepush/library.sh"
|
2017-03-14 12:13:16 +03:00
|
|
|
$ 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
|
|
|
|
|
2018-04-16 14:49:45 +03:00
|
|
|
Setup background backup logging
|
2019-05-20 16:11:59 +03:00
|
|
|
$ setconfig infinitepushbackup.logdir=$TESTTMP/logs
|
2017-03-14 12:13:16 +03:00
|
|
|
$ mkcommit first
|
|
|
|
|
2017-04-12 11:12:23 +03:00
|
|
|
Check that logging fails because of wrong permissions
|
2019-05-20 16:11:59 +03:00
|
|
|
$ hg cloud backup --background
|
2017-04-18 09:44:26 +03:00
|
|
|
$ waitbgbackup
|
2019-05-20 16:11:59 +03:00
|
|
|
$ hg cloud backup --background --debug
|
2018-04-16 14:49:45 +03:00
|
|
|
$TESTTMP/logs directory has incorrect permission, background backup logging will be disabled
|
2017-03-14 12:13:16 +03:00
|
|
|
$ waitbgbackup
|