Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ name: Test

on:
push:
workflow_dispatch:
paths-ignore:
- '.github/ISSUE_TEMPLATE/*'
- '.github/generated-files/*'
Expand Down
10 changes: 5 additions & 5 deletions lib/bashunit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# check_os.sh

# shellcheck disable=SC2034
Expand Down Expand Up @@ -1040,7 +1040,7 @@ function console_results::print_execution_time() {
return
fi

local time=$(printf "%.0f" "$(clock::total_runtime_in_milliseconds)")
local time=$(clock::total_runtime_in_milliseconds | awk '{printf "%.0f", $1}')

if [[ "$time" -lt 1000 ]]; then
printf "${_COLOR_BOLD}%s${_COLOR_DEFAULT}\n" \
Expand All @@ -1050,7 +1050,7 @@ function console_results::print_execution_time() {

local time_in_seconds=$(( time / 1000 ))
local remainder_ms=$(( time % 1000 ))
local formatted_seconds=$(printf "%.2f" "$time_in_seconds.$remainder_ms")
local formatted_seconds=$(echo "$time_in_seconds.$remainder_ms" | awk '{printf "%.0f", $1}')

printf "${_COLOR_BOLD}%s${_COLOR_DEFAULT}\n" \
"Time taken: $formatted_seconds s"
Expand Down Expand Up @@ -3161,11 +3161,11 @@ function main::handle_assert_exit_code() {
fi
}

#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

# shellcheck disable=SC2034
declare -r BASHUNIT_VERSION="0.19.0"
declare -r BASHUNIT_VERSION="0.19.1"

# shellcheck disable=SC2155
declare -r BASHUNIT_ROOT_DIR="$(dirname "${BASH_SOURCE[0]}")"
Expand Down