From aa2cfbaabc916374dedcc7652d9bde801cd3381a Mon Sep 17 00:00:00 2001 From: Stephan Bosch <stephan@rename-it.nl> Date: Fri, 19 Apr 2013 09:15:01 +0200 Subject: [PATCH] Fixed test suite for vnd.dovecot.execute extension. Testsuite hostname is now true local hostname. --- tests/plugins/extprograms/execute/execute.svtest | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/plugins/extprograms/execute/execute.svtest b/tests/plugins/extprograms/execute/execute.svtest index 08f56f1ac..1f9208133 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"; -- GitLab