Skip to content

Commit

Permalink
refactor: remove unnecesary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Oct 11, 2024
1 parent 155e694 commit be19c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/globals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
6 changes: 2 additions & 4 deletions src/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ function run_test() {
}

function runner::call_test_functions() {
trap 'exit' SIGTERM

local script="$1"
local filter="$2"
local prefix="test"
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit be19c79

Please sign in to comment.