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:
Otavio Pontes
2020-04-01 08:38:15 -07:00
parent d6ff0586ef
commit 2fe40faf10
14 changed files with 41 additions and 3 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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