sapling/eden/scm/tests/test-commitcloud-background-logging-perms.t
Durham Goode 14ec2d4b34 py3: enable more tests
Summary: These now pass

Reviewed By: farnz

Differential Revision: D19678869

fbshipit-source-id: 68601ff6a6d33b13947210eecfecd999aa2ddb1a
2020-02-01 10:39:39 -08:00

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