Skip to content
Snippets Groups Projects
Commit 52f90936 authored by Jérôme Charaoui's avatar Jérôme Charaoui
Browse files

[tests] replace test_sh() with setup_sh()

parent 15e89370
Branches
No related tags found
No related merge requests found
load common
test_sh() {
setup_sh() {
cat << EOF > "${BATS_TMPDIR}/backup.d/test.sh"
!#/bin/sh
touch /var/backups/test_sh
......@@ -10,7 +10,6 @@ EOF
}
@test "sh: runs and creates file" {
test_sh
run backupninja -f "${BATS_TMPDIR}/backupninja.conf" --now --run "${BATS_TMPDIR}/backup.d/test.sh"
[ "$status" -eq 0 ]
[ -f /var/backups/test_sh ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment