-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_other: Add helper function to verify expected failing commands. NFC. #8518
Conversation
ff4775d
to
2df2652
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@@ -18,7 +18,7 @@ from tools import shared | |||
if len(sys.argv) != 2 or \ | |||
not re.match(r"^[\w\W_][\w\W_\d]*$", sys.argv[1]) or \ | |||
not (sys.argv[1] in dir(shared)): | |||
print('Usage: em-config VAR_NAME') | |||
print('Usage: em-config VAR_NAME', file=sys.stderr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change looks unrelated? seems ok though
tests/test_other.py
Outdated
@@ -7830,15 +7807,24 @@ def test_binaryen_mem(self): | |||
else: | |||
self.assertEqual(parts[6], str(expect_max)) | |||
|
|||
def expect_fail(self, cmd, **args): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the location here seems a bit odd - perhaps all the way up at the top?
…mmands. NFC. (emscripten-core#8518)" This reverts commit a4eea28.
…mmands. NFC. (emscripten-core#8518)" This reverts commit a4eea28.
No description provided.