From 8d9b0418bbe7abcd60439feaf4c39428292287d6 Mon Sep 17 00:00:00 2001 From: Jerome Charaoui Date: Sun, 15 Jul 2018 00:50:15 -0400 Subject: [PATCH] tests: replace test_sh() with setup_sh() --- test/sh.bats | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/sh.bats b/test/sh.bats index e868d86..660f40e 100644 --- a/test/sh.bats +++ b/test/sh.bats @@ -1,6 +1,6 @@ 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 ]