summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/check.py b/check.py
index 69c33621c..0ccad611e 100755
--- a/check.py
+++ b/check.py
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os, sys, subprocess, difflib, json, time
+import os, shutil, sys, subprocess, difflib, json, time
interpreter = None
requested = []
@@ -278,14 +278,15 @@ for s in sorted(os.listdir(os.path.join('test', 'dot_s'))) + sorted(os.listdir(o
print '\n[ checking torture testcases... ]\n'
import test.experimental.buildbot.link_assembly_files as link_assembly_files
-s2wasm_out = os.path.abspath(os.path.join('buildbot', 's2wasm-out'))
-if not os.path.isdir(s2wasm_out):
- os.mkdir(s2wasm_out)
+s2wasm_torture_out = os.path.abspath(os.path.join('test', 's2wasm-torture-out'))
+if os.path.isdir(s2wasm_torture_out):
+ shutil.rmtree(s2wasm_torture_out)
+os.mkdir(s2wasm_torture_out)
unexpected_result_count = link_assembly_files.run(
linker=os.path.abspath(os.path.join('bin', 's2wasm')),
- files=os.path.abspath(os.path.join('buildbot', 'torture-s', '*.s')),
+ 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_out)
+ out=s2wasm_torture_out)
if unexpected_result_count:
fail(unexpected_result_count, 0)