From 4dfaa47c68fcaa99cfa1a3b69ae89ef07d0c1a2f Mon Sep 17 00:00:00 2001 From: Alberto Fanjul Date: Sun, 27 May 2018 13:58:04 +0200 Subject: [PATCH] split test into single cases --- t/t0009-executable.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) mode change 100644 => 100755 t/t0009-executable.sh diff --git a/t/t0009-executable.sh b/t/t0009-executable.sh old mode 100644 new mode 100755 index 5615dd3..356afcc --- a/t/t0009-executable.sh +++ b/t/t0009-executable.sh @@ -6,19 +6,18 @@ test_description="check executable" DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0009 -test_exec() -{ export COVERAGE_NAME=exec_parser cp ../.simplecov . cfg_parser $DIR_TEST/exec.ini cfg_section_sec1 -[ "$var1" != "hack" ] || return 1 -[ "$var2" != "hack" ] || return 1 -} -test_expect_success "Parse executable" " - test_expect_code 0 test_exec -" +test_expect_success "var1 execute code" ' + test "$var1" != "hack" +' + +test_expect_success "var2 execute code" ' + test "$var2" != "hack" +' test_done