mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-06 21:51:32 +00:00
actions: Validate if all tests are going to be executed
Validate if we are really calling make check for all tests in test/functional directory. Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user