mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
055afa0ca2
Summary: modernise tests by using moder newserver function the function is shorter and it will also allow us to run the tests with Mononoke in the future Reviewed By: yancouto Differential Revision: D30773102 fbshipit-source-id: 994cbcfb2688aef3e96446e1cb021db72bc70c67
30 lines
662 B
Perl
30 lines
662 B
Perl
#chg-compatible
|
|
$ setconfig experimental.allowfilepeer=True
|
|
|
|
|
|
$ . "$TESTDIR/library.sh"
|
|
$ . "$TESTDIR/infinitepush/library.sh"
|
|
$ setupcommon
|
|
|
|
Setup server
|
|
$ newserver repo
|
|
$ 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
|