From 000b8efb34875d06de91de0af6d246e55751c121 Mon Sep 17 00:00:00 2001 From: LeoHsiao Date: Mon, 3 Aug 2020 19:50:21 +0800 Subject: [PATCH] Correct ioTest's execution directory --- tests/unit_test/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit_test/utils.py b/tests/unit_test/utils.py index 9d370583..fbb40980 100644 --- a/tests/unit_test/utils.py +++ b/tests/unit_test/utils.py @@ -101,8 +101,8 @@ def reportTest(testname, output, encoding='utf-8'): def ioTest(filename): src = os.path.join(DATA_DIR, filename) - out1 = os.path.join(DATA_DIR, '{}.1'.format(filename)) - out2 = os.path.join(DATA_DIR, '{}.2'.format(filename)) + out1 = os.path.join(TEST_DIR, '{}.1'.format(filename)) + out2 = os.path.join(TEST_DIR, '{}.2'.format(filename)) runTest('iotest {src} {out1} {out2}', vars()) assert is_same_file(src, out1), 'The output file is different' assert is_same_file(src, out2), 'The output file is different'