Skip to content

Commit

Permalink
test_other: Add helper function to verify expected failing commands. …
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored Apr 30, 2019
1 parent 2dbdaef commit d8929cd
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 122 deletions.
2 changes: 1 addition & 1 deletion em-config
Original file line number Diff line number Diff line change
Expand Up @@ -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)
exit(1)

print(getattr(shared, sys.argv[1]))
Expand Down
Loading

0 comments on commit d8929cd

Please sign in to comment.