summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2012-04-18 21:12:48 -0400
committerMichael DeHaan <michael.dehaan@gmail.com>2012-04-18 21:12:48 -0400
commitda0209dbc43d3f6f5a659400d0015399025f5376 (patch)
treee4f73ba1677e84514011e06d18aea4b701980cf7 /test
parent2659c3872005a6ae666407e0f795b1e8b6246e2e (diff)
downloadansible-da0209dbc43d3f6f5a659400d0015399025f5376.tar.gz
The fetch module really should preserve the whole directory structure being fetched to allow subsequent calls,
particularly in playbook, to recreate the host tree structure. Making it thus.
Diffstat (limited to 'test')
-rw-r--r--test/TestRunner.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/TestRunner.py b/test/TestRunner.py
index fc890125a5..529b4a6965 100644
--- a/test/TestRunner.py
+++ b/test/TestRunner.py
@@ -201,9 +201,8 @@ class TestRunner(unittest.TestCase):
def test_fetch(self):
input = self._get_test_file('sample.j2')
- output = self._get_stage_file('127.0.0.2/sample.j2')
+ output = os.path.join(self.stage_dir, '127.0.0.2', input)
result = self._run('fetch', [ "src=%s" % input, "dest=%s" % self.stage_dir ])
- print "output file=%s" % output
assert os.path.exists(output)
assert open(input).read() == open(output).read()