mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-15 11:57:59 +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
|
. debian/tests/setup
|
||||||
|
|
||||||
# FIXME: investigate more why those fail
|
## env
|
||||||
# FIXME: look into filters to cleanly disable problematic tests
|
TESTS_DIR="${APTLY_SRC_DIR}/system"
|
||||||
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
|
|
||||||
|
|
||||||
# etcd fixture is arch-specific
|
## functions
|
||||||
rm -fr ${APTLY_SRC_DIR}/system/t13_etcd
|
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
|
make -C $APTLY_SRC_DIR system-test
|
||||||
|
|||||||
Reference in New Issue
Block a user