diff --git a/src/globals.sh b/src/globals.sh index eb5a76d2..8b4f3250 100644 --- a/src/globals.sh +++ b/src/globals.sh @@ -15,10 +15,6 @@ function current_timestamp() { date +"%Y-%m-%d %H:%M:%S" } -function is_number() { - [[ -n "$1" && "$1" =~ ^-?[0-9]+$ ]] -} - function is_command_available() { command -v "$1" >/dev/null 2>&1 } diff --git a/src/runner.sh b/src/runner.sh index c3f37480..18a35d93 100755 --- a/src/runner.sh +++ b/src/runner.sh @@ -73,8 +73,6 @@ function run_test() { } function runner::call_test_functions() { - trap 'exit' SIGTERM - local script="$1" local filter="$2" local prefix="test" @@ -269,9 +267,9 @@ function runner::parse_result_parallel() { local test_result_file=$(echo "${args[@]}" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/-/g; s/^-|-$//') if [[ -z "$test_result_file" ]]; then - test_result_file="${function_name}.result" + test_result_file="${function_name}.$$.result" else - test_result_file="${function_name}-${test_result_file}.result" + test_result_file="${function_name}-${test_result_file}.$$.result" fi local unique_test_result_file="${test_suite_dir}/${test_result_file}"