summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xcheck.py2
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
diff --git a/check.py b/check.py
index b56c6dec1..cacdc9129 100755
--- a/check.py
+++ b/check.py
@@ -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)