summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-18 19:37:21 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-18 19:37:21 -0800
commit0b0fecfabcfabd3002a7cbfbe772adf6b2709382 (patch)
tree4b1a20cfe32fe4c991783a5bd1d5b95ee235e452
parentbc02d17a59a5fa6387cc399b919e3e144f4b3a99 (diff)
downloadbinaryen-0b0fecfabcfabd3002a7cbfbe772adf6b2709382.tar.gz
binaryen-0b0fecfabcfabd3002a7cbfbe772adf6b2709382.tar.bz2
binaryen-0b0fecfabcfabd3002a7cbfbe772adf6b2709382.zip
fix check.py after recent movement of code
-rwxr-xr-xcheck.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/check.py b/check.py
index 40ff6cfd9..0792bd03d 100755
--- a/check.py
+++ b/check.py
@@ -35,6 +35,13 @@ for arg in sys.argv[1:]:
else:
requested.append(arg)
+warnings = []
+
+def warn(text):
+ global warnings
+ warnings.append(text)
+ print 'warning:', text
+
# setup
BASE_DIR = os.path.abspath('test')
@@ -129,13 +136,6 @@ if len(requested) == 0:
else:
tests = requested[:]
-warnings = []
-
-def warn(text):
- global warnings
- warnings.append(text)
- print 'warning:', text
-
if not interpreter:
warn('no interpreter provided (did not test spec interpreter validation)')
if not has_node: