mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-15 07:00:52 +00:00
tests: clean way to disable single tests, disable s390-flaky CreateMirror35Test
This commit is contained in:
Vendored
+23
-8
@@ -6,14 +6,29 @@ set -eux
|
||||
|
||||
. debian/tests/setup
|
||||
|
||||
# FIXME: investigate more why those fail
|
||||
# FIXME: look into filters to cleanly disable problematic tests
|
||||
rm ${APTLY_SRC_DIR}/system/t02_config/config.py
|
||||
rm ${APTLY_SRC_DIR}/system/t07_serve/serve.py
|
||||
rm ${APTLY_SRC_DIR}/system/t12_api/docs.py
|
||||
rm ${APTLY_SRC_DIR}/system/t14_graph/graph.py
|
||||
## env
|
||||
TESTS_DIR="${APTLY_SRC_DIR}/system"
|
||||
|
||||
# etcd fixture is arch-specific
|
||||
rm -fr ${APTLY_SRC_DIR}/system/t13_etcd
|
||||
## functions
|
||||
disable_test() {
|
||||
local file=${1}.py
|
||||
local name=$2
|
||||
local reason=$3
|
||||
|
||||
echo "${name}.skipTest = 'Debian autopkgtest: $reason'" >> ${TESTS_DIR}/${file}
|
||||
}
|
||||
|
||||
## main
|
||||
export USER=root # for t07/RootDirInaccessible
|
||||
|
||||
disable_test t02_config/config CreateConfigTest "different conf"
|
||||
disable_test t04_mirror/create CreateMirror35Test "flaky on s390"
|
||||
disable_test t07_serve/serve Serve1Test "minor html diff"
|
||||
disable_test t12_api/docs TaskAPITestSwaggerDocs "no recent swag"
|
||||
disable_test t14_graph/graph CreateGraphTest "no viewer"
|
||||
disable_test t14_graph/graph CreateGraphOutputTest "no viewer"
|
||||
|
||||
# etcd fixture is entirely arch-specific
|
||||
rm -fr ${TESTS_DIR}/t13_etcd
|
||||
|
||||
make -C $APTLY_SRC_DIR system-test
|
||||
|
||||
Reference in New Issue
Block a user