From 4287819043789e062636422ef319f344318827f5 Mon Sep 17 00:00:00 2001 From: Jerome Charaoui Date: Wed, 6 Jan 2021 22:22:43 -0500 Subject: [PATCH] tests: adjust sh labels and runaction call --- test/sh.bats | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/sh.bats b/test/sh.bats index 50a02ea..ef8f280 100644 --- a/test/sh.bats +++ b/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." }