tests: ifup: add dependency loop breaking test

This commit is contained in:
Ariadne Conill 2020-10-08 02:05:43 -06:00
parent 122a54377d
commit 0cade539f8

View file

@ -19,7 +19,8 @@ tests_init \
learned_dependency_2 \ learned_dependency_2 \
learned_executor \ learned_executor \
implicit_vlan \ implicit_vlan \
teardown_dep_ordering teardown_dep_ordering \
dependency_loop_breaking
noargs_body() { noargs_body() {
atf_check -s exit:1 -e ignore ifup -S/dev/null atf_check -s exit:1 -e ignore ifup -S/dev/null
@ -139,3 +140,9 @@ teardown_dep_ordering_body() {
-e match:"skipping auto interface dummy" \ -e match:"skipping auto interface dummy" \
ifup -n -i $FIXTURES/teardown-dep-ordering.interfaces -E $EXECUTORS -a ifup -n -i $FIXTURES/teardown-dep-ordering.interfaces -E $EXECUTORS -a
} }
dependency_loop_breaking_body() {
atf_check -s exit:0 -o ignore \
-e match:"ifup: skipping auto interface a \\(already configured\\), use --force to force configuration" \
ifup -n -i $FIXTURES/dependency-loop.interfaces -E $EXECUTORS -a
}