mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-06 05:32:01 +00:00
test: Group tests that can be run only on in CI
2 groups were created: - slow: Tests that are very slow because of sleeps, so we can run them all in parallel - system: Tests that make change to the system, so they can cause problems when running in parallel, so we run them in series. Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
This commit is contained in:
@@ -12,7 +12,7 @@ JOB_NUM=$1
|
||||
NUM_JOBS=$2
|
||||
DEFAULT_WEIGHT=6
|
||||
|
||||
TEST_LIST=$(find test/functional/ -name "*.bats" | sort)
|
||||
TEST_LIST=$(find test/functional/ -name "*.bats" \( ! -path "*only_in_ci*" \) | sort)
|
||||
|
||||
TOTAL_WEIGHT=0
|
||||
for t in $TEST_LIST; do
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
MAX_WEIGHT=40
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
TESTS=$(find test/functional/ -name "*.bats")
|
||||
TESTS=$(find test/functional/ -name "*.bats" \( ! -path "*only_in_ci*" \))
|
||||
else
|
||||
TESTS="$*"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user