Skip to content

Commit

Permalink
tests/test_runner.sh: remove some redundancies
Browse files Browse the repository at this point in the history
This wrapper doesn't need to load anything from helpers.bash, because
the various .bats files already do so on their own.

Signed-off-by: Nalin Dahyabhai <[email protected]>
  • Loading branch information
nalind committed Oct 17, 2024
1 parent cb3bdb8 commit b904d3b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/test_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
# labels than /tmp, which is often on tmpfs.
export TMPDIR=${TMPDIR:-/var/tmp}

# Load the helpers.
. helpers.bash

function execute() {
>&2 echo "++ $@"
eval "$@"
}

# Tests to run. Defaults to all.
TESTS=${@:-.}

# Run the tests.
execute time bats --tap $TESTS
execute time bats --tap "${@:-.}"

0 comments on commit b904d3b

Please sign in to comment.