Skip to content
Snippets Groups Projects
Commit 1b257577 authored by Simon McVittie's avatar Simon McVittie
Browse files

cgroups: run sub-tests separately, for better visibility in LAVA

parent 73fbe326
No related branches found
No related tags found
No related merge requests found
......@@ -468,6 +468,23 @@ test_network_cgroup_priority_classification() {
trap "_run_cmd _kill_procs; test_failure" ERR
trap "_run_cmd _kill_procs" EXIT
if [ -n "$1" ]; then
e=0
$1 || e=$?
case "$e" in
(0)
echo "$1 passed (exit $e)"
;;
(77)
echo "$1 skipped (exit $e)"
;;
(*)
echo "$1 failed (exit $e)"
;;
esac
exit $e
fi
src_test_pass <<-EOF
test_cpu_shares
test_memory_limits
......
......@@ -21,7 +21,12 @@ install:
run:
steps:
- common/run-test-in-systemd --name=cgroups-resource-control --timeout=900 env DEBUG=2 cgroups/automated/run-test.sh
- common/run-test-in-systemd --name=cpu-shares --timeout=900 env DEBUG=2 cgroups/automated/run-test.sh test_cpu_shares
- common/run-test-in-systemd --name=memory-limits --timeout=900 env DEBUG=2 cgroups/automated/run-test.sh test_memory_limits
- common/run-test-in-systemd --name=memory-threshold-notification --timeout=900 env DEBUG=2 cgroups/automated/run-test.sh test_memory_threshold_notification
- common/run-test-in-systemd --name=blkio-weights-random-read --timeout=900 env DEBUG=2 cgroups/automated/run-test.sh test_blkio_weights_random_read
- common/run-test-in-systemd --name=blkio-weights-seq-read --timeout=900 env DEBUG=2 cgroups/automated/run-test.sh test_blkio_weights_sequential_read
- common/run-test-in-systemd --name=network-cgroup-prio-class --timeout=900 env DEBUG=2 cgroups/automated/run-test.sh test_network_cgroup_priority_classification
parse:
pattern: ^(?P<test_case_id>[a-zA-Z0-9_\-\./]+):\s*(?P<result>pass|fail|skip|unknown)$
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment