Skip to content

Commit ec14d99

Browse files
bashunit update to version 0.19.1 (#44)
* bashunit update to version 0.19.1 * Added on workflow_dispatch --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: feskol <festim.kolgeci@pm.me>
1 parent 49d6492 commit ec14d99

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ name: Test
1111

1212
on:
1313
push:
14+
workflow_dispatch:
1415
paths-ignore:
1516
- '.github/ISSUE_TEMPLATE/*'
1617
- '.github/generated-files/*'

lib/bashunit

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# check_os.sh
33

44
# shellcheck disable=SC2034
@@ -1040,7 +1040,7 @@ function console_results::print_execution_time() {
10401040
return
10411041
fi
10421042

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

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

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

10551055
printf "${_COLOR_BOLD}%s${_COLOR_DEFAULT}\n" \
10561056
"Time taken: $formatted_seconds s"
@@ -3161,11 +3161,11 @@ function main::handle_assert_exit_code() {
31613161
fi
31623162
}
31633163

3164-
#!/bin/bash
3164+
#!/usr/bin/env bash
31653165
set -euo pipefail
31663166

31673167
# shellcheck disable=SC2034
3168-
declare -r BASHUNIT_VERSION="0.19.0"
3168+
declare -r BASHUNIT_VERSION="0.19.1"
31693169

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

0 commit comments

Comments
 (0)