summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2016-01-18 11:06:50 -0800
committerJF Bastien <jfb@chromium.org>2016-01-18 11:06:50 -0800
commit239d2cff28354e32800a4272165b85340a40800c (patch)
tree00632a4b673eea94e721c48366bc586c5c9506a8 /check.py
parentadc13b1322830e5a8133fa4886ca7426b38ab424 (diff)
downloadbinaryen-239d2cff28354e32800a4272165b85340a40800c.tar.gz
binaryen-239d2cff28354e32800a4272165b85340a40800c.tar.bz2
binaryen-239d2cff28354e32800a4272165b85340a40800c.zip
strip rev, removing newline
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/check.py b/check.py
index 8404dcbb9..40ff6cfd9 100755
--- a/check.py
+++ b/check.py
@@ -42,9 +42,9 @@ WATERFALL_BUILD_DIR = os.path.join(BASE_DIR, 'wasm-install')
BIN_DIR = os.path.abspath(os.path.join(WATERFALL_BUILD_DIR, 'wasm-install', 'bin'))
def fetch_waterfall():
- rev = open(os.path.join('test', 'revision')).read()
+ rev = open(os.path.join('test', 'revision')).read().strip()
try:
- local_rev = open(os.path.join('test', 'local-revision')).read()
+ local_rev = open(os.path.join('test', 'local-revision')).read().strip()
except:
local_rev = None
if local_rev == rev: return