From f8242f6ce5553ee1c60bd9f41ac439f9a7c3f22c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 19 Jul 2020 00:17:42 -0600 Subject: [PATCH] tests: verify ifquery lo always works --- tests/ifquery_test | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/ifquery_test b/tests/ifquery_test index 0ecc5e0..b2641e3 100755 --- a/tests/ifquery_test +++ b/tests/ifquery_test @@ -3,8 +3,13 @@ . $(atf_get_srcdir)/test_env.sh tests_init \ - noargs + noargs \ + loopback_always_configured noargs_body() { atf_check -s exit:1 -e ignore ifquery } + +loopback_always_configured_body() { + atf_check -s exit:0 -o match:"inet loopback" ifquery --pretty-print lo +}