tests: add tests for auto interface skipping

This commit is contained in:
Ariadne Conill 2020-09-09 20:46:50 -06:00
parent ceb82f4fd2
commit e754e836af
4 changed files with 34 additions and 1 deletions

View file

@ -18,7 +18,8 @@ tests_init \
learned_dependency \
learned_dependency_2 \
learned_executor \
implicit_vlan
implicit_vlan \
teardown_dep_ordering
noargs_body() {
atf_check -s exit:1 -e ignore ifup -S/dev/null
@ -131,3 +132,10 @@ implicit_vlan_body() {
-e match:"attempting to run link executor" \
ifup -n -S/dev/null -E $EXECUTORS -i $FIXTURES/vlan.interfaces eth0.8
}
teardown_dep_ordering_body() {
atf_check -s exit:0 -o ignore \
-e match:"skipping auto interface bat" \
-e match:"skipping auto interface dummy" \
ifup -n -i $FIXTURES/teardown-dep-ordering.interfaces -E $EXECUTORS -a
}