t921*: test scalar behavior starting maintenance
commiteeea9ae1657e32ee16f8452ff201b2ca54d51641
authorDerrick Stolee <derrickstolee@github.com>
Fri, 27 Jan 2023 20:06:02 +0000 (27 20:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Jan 2023 20:38:26 +0000 (27 12:38 -0800)
tree4941c9077128276816a20786af941715eaf172f6
parent008217cb4a11b1bd9d25eda2d412d813cfeacd9f
t921*: test scalar behavior starting maintenance

A user recently reported issues with 'scalar register' and 'scalar
clone' in that they failed when the system had permissions locked down
so both 'crontab' and 'systemctl' commands failed when trying to enable
background maintenance.

This hard error is undesirable, but let's create tests that demonstrate
this behavior before modiying the behavior. We can use
GIT_TEST_MAINT_SCHEDULER to guarantee failure and check the exit code
and error message.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9210-scalar.sh
t/t9211-scalar-clone.sh