Skip to content

Commit

Permalink
Refactor check.py so that groups of tests can be split into separate … (
Browse files Browse the repository at this point in the history
WebAssembly#849)

* Refactor check.py so that groups of tests can be split into separate files

- Move helper util functions into test/shared.py
- Move scripts/support.py to test/support.py
- Split s2wasm tests into its own file

* Fix flake8 warnings for shared.py and s2wasm.py

* Move test scripts from test/ to scripts/test/

* Replace 'from shared import *' with explicit imports
  • Loading branch information
jgravelle-google authored Dec 6, 2016
1 parent ba7638d commit 9f78d93
Show file tree
Hide file tree
Showing 7 changed files with 547 additions and 347 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ install:

before_script:
# Check the style of a subset of Python code until the other code is updated.
- flake8 ./scripts/*
- flake8 ./scripts/

script:
- ./check.py --only-prepare
Expand Down
2 changes: 1 addition & 1 deletion auto_update_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import os, sys, subprocess, difflib

from scripts.support import run_command, split_wast
from scripts.test.support import run_command, split_wast

print '[ processing and updating testcases... ]\n'

Expand Down
Loading

0 comments on commit 9f78d93

Please sign in to comment.