diff options
author | Yves Dorfsman <yves@zioup.com> | 2013-02-23 18:20:38 +0100 |
---|---|---|
committer | Michael DeHaan <michael.dehaan@gmail.com> | 2013-02-23 18:50:18 +0100 |
commit | cff8cdd428dda3e2eb9c76357baafe8a474f5930 (patch) | |
tree | eb30dab21866c9bd1ad3c3415963487c97af5774 /test | |
parent | Added test cases for lineinfile. (diff) | |
download | ansible-cff8cdd428dda3e2eb9c76357baafe8a474f5930.tar.xz ansible-cff8cdd428dda3e2eb9c76357baafe8a474f5930.zip |
Using the _get_test and _get_stage methods.
Diffstat (limited to 'test')
-rw-r--r-- | test/TestRunner.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/TestRunner.py b/test/TestRunner.py index cc1e8dfcb1..65c780b278 100644 --- a/test/TestRunner.py +++ b/test/TestRunner.py @@ -291,9 +291,10 @@ class TestRunner(unittest.TestCase): assert result['changed'] == False def test_lineinfile(self): - samplefn = 'rocannon.txt' - sample = os.path.join('test', 'artifact' + samplefn) - shutil.copy( os.path.join('test', samplefn), sample) + sampleroot = 'rocannon' + sample_origin = self._get_test_file(sampleroot + '.txt') + sample = self._get_stage_file(sampleroot + '.out' + '.txt') + shutil.copy( sample_origin, sample) # The order of the test cases is important # defaults to insertafter at the end of the file |