mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 11:52:32 +01:00
tests: adjust sh labels and runaction call
This commit is contained in:
parent
49b27f154f
commit
4287819043
10
test/sh.bats
10
test/sh.bats
@ -14,16 +14,14 @@ teardown_sh() {
|
||||
cleanup_backups local
|
||||
}
|
||||
|
||||
@test "sh: runs and creates file" {
|
||||
runaction test.sh
|
||||
[ "$status" -eq 0 ]
|
||||
@test "runs and creates file" {
|
||||
runaction
|
||||
[ -f "${BN_BACKUPDIR}/testsh" ]
|
||||
greplog "Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning."
|
||||
}
|
||||
|
||||
@test "sh: is not executed in test mode" {
|
||||
testaction test.sh
|
||||
[ "$status" -eq 0 ]
|
||||
@test "is not executed in test mode" {
|
||||
testaction
|
||||
[ ! -f "${BN_BACKUPDIR}/testsh" ]
|
||||
greplog "Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning."
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user