diff options
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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) |