From 7c5921cfc4c0681b2162eb2ce7f5cc759ef3c3d8 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 10 Jul 2016 21:35:27 +0100 Subject: [PATCH] test --- tests/tests_jc2server.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/tests_jc2server.sh b/tests/tests_jc2server.sh index 42cd57f25..23a674d76 100644 --- a/tests/tests_jc2server.sh +++ b/tests/tests_jc2server.sh @@ -98,22 +98,22 @@ core_functions.sh # if excpecting a pass fn_test_result_pass(){ if [ $? != 0 ]; then - fn_print_fail "Test Failed" + fn_print_fail_nl "Test Failed" exitcode=1 core_exit.sh else - fn_print_ok "Test Passed" + fn_print_ok_nl "Test Passed" fi } # if excpecting a fail fn_test_result_fail(){ if [ $? == 0 ]; then - fn_print_fail "Test Failed" + fn_print_fail_nl "Test Failed" exitcode=1 core_exit.sh else - fn_print_ok "Test Passed" + fn_print_ok_nl "Test Passed" fi } @@ -141,6 +141,7 @@ wget https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranc chmod +x jc2server echo "Create log dir" mkdir -pv log/script/ +rm -rf lgsm/functions/* echo "Enable dev-debug" ./jc2server dev-debug @@ -175,4 +176,9 @@ echo "=================================" echo "Description:" echo "install Just Cause 2 server." ./jc2server auto-install -fn_test_result_pass \ No newline at end of file +fn_test_result_pass + +echo "3.1 - start" +echo "=================================" +echo "Description:" +echo "start ${gamename} server." \ No newline at end of file