mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-04-28 19:03:46 +00:00
Validate if we are really calling make check for all tests in test/functional directory. Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
16 lines
381 B
Bash
Executable File
16 lines
381 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
JOB_NUMBER="$1"
|
|
NUM_JOBS="$2"
|
|
|
|
FILES=$(scripts/github_actions/filter_bats_list.bash "$JOB_NUMBER" "$NUM_JOBS")
|
|
NUM_FILES=$(echo "$FILES" | tr ' ' '\n' | wc -l)
|
|
echo "Running $NUM_FILES tests"
|
|
# shellcheck disable=SC2116
|
|
# shellcheck disable=SC2086
|
|
# Weird, but we really need this
|
|
env TESTS="$(echo $FILES)" make -e -j2 check
|
|
|
|
echo "$FILES" > job-"$JOB_NUMBER"
|