diff --git a/tests/plugins/extprograms/execute/execute.svtest b/tests/plugins/extprograms/execute/execute.svtest index 08f56f1ac44ef277e21b6573440e4eaaaf7bce69..1f9208133c18e051f580a70d05ee493a9e6f3c78 100644 --- a/tests/plugins/extprograms/execute/execute.svtest +++ b/tests/plugins/extprograms/execute/execute.svtest @@ -3,6 +3,7 @@ require "vnd.dovecot.execute"; require "vnd.dovecot.debug"; require "variables"; require "relational"; +require "environment"; test_set "message" text: From: stephan@example.com @@ -70,8 +71,8 @@ test "Execute - env" { } execute :output "out" "env" "HOST"; - if not string :is "${out}" "host.example.com" { - test_fail "wrong ORIG_RECIPIENT env returned: '${out}'"; + if not environment :is "host" "${out}" { + test_fail "wrong HOST env returned: '${out}'"; } execute :output "out" "env" "HOME";