mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-23 03:02:32 +01:00
tests: Fix scheduling testcase
This commit is contained in:
parent
427ff780a4
commit
b67d785937
@ -130,7 +130,7 @@ testaction() {
|
||||
@test "scheduling: runs when = 'Tuesday at 04' and time matches" {
|
||||
testaction info test_info
|
||||
setconfig backupninja.conf when 'Tuesday at 04'
|
||||
run faketime -f '@2018-06-10 04:00:00' backupninja -f "${BATS_TMPDIR}/backupninja.conf"
|
||||
run faketime -f '@2018-06-12 04:00:00' backupninja -f "${BATS_TMPDIR}/backupninja.conf"
|
||||
[ "$status" -eq 0 ]
|
||||
grep -q "Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning." "${BATS_TMPDIR}/log/backupninja.log"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user