diff options
author | JF Bastien <jfb@chromium.org> | 2016-01-08 12:49:28 -0800 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2016-01-08 12:49:28 -0800 |
commit | 6e5eb6bf9c9450428b418e65167e488416dbc9ec (patch) | |
tree | a85c06982a5c3ec8834ca9df09bdf045a160b5df | |
parent | 631c527e2eda16819d4c24b19e2b5b8a3f075336 (diff) | |
download | binaryen-6e5eb6bf9c9450428b418e65167e488416dbc9ec.tar.gz binaryen-6e5eb6bf9c9450428b418e65167e488416dbc9ec.tar.bz2 binaryen-6e5eb6bf9c9450428b418e65167e488416dbc9ec.zip |
s2wasm torture test: delete output dir when done.
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | check.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index 0fcf35ca6..971faa095 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,3 @@ cmake_install.cmake .ninja_deps .ninja_log test/wasm-torture-s-*.tbz2 -test/s2wasm-torture-out @@ -268,6 +268,8 @@ unexpected_result_count = link_assembly_files.run( files=os.path.abspath(os.path.join('test', 'torture-s', '*.s')), fails=os.path.abspath(os.path.join('test', 's2wasm_known_gcc_test_failures.txt')), out=s2wasm_torture_out) +assert os.path.isdir(s2wasm_torture_out), 'Expected output directory %s' % s2wasm_torture_out +shutil.rmtree(s2wasm_torture_out) if unexpected_result_count: fail(unexpected_result_count, 0) |