Thanks to visit codestin.com
Credit goes to github.com

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
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ The format is based on [Keep a Changelog][kac] and this project adheres to

### Fixed

* explicitly check for GNU parallel (#691)

#### Documentation

* improved clarity of section about output in free code (#671)
Expand Down
2 changes: 1 addition & 1 deletion libexec/bats-core/bats-exec-suite
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ while [[ "$#" -ne 0 ]]; do
done

if [[ "$num_jobs" != 1 ]]; then
if ! type -p parallel >/dev/null && [[ -z "$bats_no_parallelize_across_files" ]]; then
if ! type -p parallel >/dev/null && parallel --version &>/dev/null && [[ -z "$bats_no_parallelize_across_files" ]]; then
abort "Cannot execute \"${num_jobs}\" jobs without GNU parallel"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion test/parallel.bats
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fixtures parallel
BATS_TEST_TIMEOUT=10 # only intended for the "short form ..."" test

setup() {
type -p parallel &>/dev/null || skip "--jobs requires GNU parallel"
(type -p parallel &>/dev/null && parallel --version &>/dev/null) || skip "--jobs requires GNU parallel"
(type -p flock &>/dev/null || type -p shlock &>/dev/null) || skip "--jobs requires flock/shlock"
}

Expand Down