diff options
author | Jose <jose@zeroc.com> | 2019-02-05 19:03:04 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-02-05 19:03:04 +0100 |
commit | e9e8a21c572af0761b69f7c30e7fc3592280bf46 (patch) | |
tree | 0fa74af03a294682c3a6a7a9112f08ffb3269914 /cpp/test/Slice/errorDetection/test.py | |
parent | Create Slice/errorDetection output dir (diff) | |
download | ice-e9e8a21c572af0761b69f7c30e7fc3592280bf46.tar.bz2 ice-e9e8a21c572af0761b69f7c30e7fc3592280bf46.tar.xz ice-e9e8a21c572af0761b69f7c30e7fc3592280bf46.zip |
Another fix for Slice/errorDetection
Diffstat (limited to 'cpp/test/Slice/errorDetection/test.py')
-rw-r--r-- | cpp/test/Slice/errorDetection/test.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/test/Slice/errorDetection/test.py b/cpp/test/Slice/errorDetection/test.py index 6f11921bd73..001543cb0e6 100644 --- a/cpp/test/Slice/errorDetection/test.py +++ b/cpp/test/Slice/errorDetection/test.py @@ -14,9 +14,10 @@ class SliceErrorDetectionTestCase(ClientTestCase): testdir = current.testsuite.getPath() slice2cpp = SliceTranslator("slice2cpp") - if os.path.exists("tmp"): - shutil.rmtree("tmp") - os.mkdir("tmp") + outdir = "{0}/tmp".format(testdir) + if os.path.exists(outdir): + shutil.rmtree(outdir) + os.mkdir(outdir) files = glob.glob("{0}/*.ice".format(testdir)) files.sort() @@ -54,7 +55,7 @@ class SliceErrorDetectionTestCase(ClientTestCase): compiler.run(current, args=["forward/Forward.ice", "--output-dir", "tmp"]) current.writeln("ok") finally: - if os.path.exists("{0}/tmp".format(testdir)): - shutil.rmtree("{0}/tmp".format(testdir)) + if os.path.exists(outdir): + shutil.rmtree(outdir) TestSuite(__name__, [ SliceErrorDetectionTestCase() ]) |