From 39a53e42c8856278f481b9035e54eb90d8d2a0b7 Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Sat, 1 Aug 2015 22:24:38 +0200 Subject: [PATCH] Improve test helper --- tests/helpers/tpm.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/helpers/tpm.sh b/tests/helpers/tpm.sh index 9de1d95..ecf29e7 100644 --- a/tests/helpers/tpm.sh +++ b/tests/helpers/tpm.sh @@ -1,10 +1,5 @@ check_dir_exists_helper() { - local dir_path=$1 - if [ -d "$dir_path" ]; then - return 0 - else - return 1 - fi + [ -d "$1" ] } # runs the scripts and asserts it has the correct output and exit code