summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2017-07-21 11:37:21 -0700
committerToshio Kuratomi <a.badger@gmail.com>2017-07-21 12:20:53 -0700
commit69fd263cff9a3e7d86b87ed1b753626e95c104f3 (patch)
treef1e0dd6f45d06c90c03758f15a253ef630b0a903
parent1ac74f561df72e59f6ae33a94c52e35085ac66c3 (diff)
downloadansible-69fd263cff9a3e7d86b87ed1b753626e95c104f3.tar.gz
Expand the result from pwd to make the test more robust
Sometimes MacOSX's pwd doesn't return an expanded path. Not sure why but this test is still valid if we expand it via a playbook filter so go ahead and do that. (cherry picked from commit 6a41a4f31188822db2d60ff544f9775c6d4b90d6)
-rw-r--r--test/integration/targets/expect/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/targets/expect/tasks/main.yml b/test/integration/targets/expect/tasks/main.yml
index b27ca5bc0f..28cbeb5955 100644
--- a/test/integration/targets/expect/tasks/main.yml
+++ b/test/integration/targets/expect/tasks/main.yml
@@ -66,7 +66,7 @@
- name: assert chdir works
assert:
that:
- - "chdir_result.stdout == '{{output_dir | expanduser | realpath}}'"
+ - "'{{chdir_result.stdout |expanduser | realpath }}' == '{{output_dir | expanduser | realpath}}'"
- name: test timeout option
expect: