mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
test: cleanup after testcase_12_resolvectl2
(cherry picked from commit 266cfdfc77a0eee6d4df60d9795f381ced8a1e65)
This commit is contained in:
parent
b6b287854a
commit
91577ec207
@ -936,6 +936,15 @@ testcase_11_nft() {
|
||||
|
||||
# Test resolvectl show-server-state
|
||||
testcase_12_resolvectl2() {
|
||||
# Cleanup
|
||||
# shellcheck disable=SC2317
|
||||
cleanup() {
|
||||
rm -f /run/systemd/resolved.conf.d/reload.conf
|
||||
systemctl reload systemd-resolved.service
|
||||
}
|
||||
|
||||
trap cleanup RETURN
|
||||
|
||||
run resolvectl show-server-state
|
||||
grep -qF "10.0.0.1" "$RUN_OUT"
|
||||
grep -qF "Interface" "$RUN_OUT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user