diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-30 10:44:33 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-30 10:44:33 -0700 |
commit | 623871bc2baf67b385bdd031ed5ace682941de8d (patch) | |
tree | c22488b621832113427d13965ccf1db9db889f5b /tests/runner.py | |
parent | 173d480c2bafcb914fb2cd0be444757e6bcd24b2 (diff) |
store target in sanity file, so changing it causes the cache to be flushed
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index de3c72de..ea6608d6 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -13105,7 +13105,7 @@ fi self.assertContained(SANITY_MESSAGE, output) assert os.path.exists(SANITY_FILE) # EMCC should have checked sanity successfully assert mtime(SANITY_FILE) >= mtime(CONFIG_FILE) - assert open(SANITY_FILE).read() == EMSCRIPTEN_VERSION + assert generate_sanity() == open(SANITY_FILE).read() self.assertNotContained(SANITY_FAIL_MESSAGE, output) # emcc run again should not sanity check, because the sanity file is newer @@ -13114,7 +13114,7 @@ fi self.assertNotContained(SANITY_FAIL_MESSAGE, output) # correct sanity contents mean we need not check - open(SANITY_FILE, 'w').write(EMSCRIPTEN_VERSION) + open(SANITY_FILE, 'w').write(generate_sanity()) output = self.check_working(EMCC) self.assertNotContained(SANITY_MESSAGE, output) |