Correct ioTest's execution directory

main
LeoHsiao 5 years ago
parent e02586db61
commit 000b8efb34

@ -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'

Loading…
Cancel
Save