sapling/eden/scm/tests/test-commitcloud-background-logging-perms.t
Liubov Dmitrieva 055afa0ca2 modernise tests by using moder newserver function
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
2021-10-06 08:14:05 -07:00

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