-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
improve nimsuggest/tester, minor improvements to koch.nim #17879
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
improve nimsuggest/tester, minor improvements to koch.nim #17879
Conversation
|
|
||
| proc parseTest(filename: string; epcMode=false): Test = | ||
| const cursorMarker = "#[!]#" | ||
| let nimsug = curDir & addFileExt("nimsuggest", ExeExt) |
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.
previous code was picking up the nimsuggest in PATH instead of the one in bin/nimsuggest that was just built in runCI; for CI it doesn't matter since there's only one, but it matters when testing and user has installed nim prior to running this. If needed i can add an option to pass nimsuggest binary via --nimsuggest:exe
new behavior is more consistent with how we test other tools
| inp.writeLine("quit") | ||
| inp.flush() | ||
| except: | ||
| except IOError, OSError: |
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.
more strict; follows #17817 (comment)
| disabled: bool | ||
|
|
||
| const | ||
| curDir = when defined(windows): "" else: "" |
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.
made no sense; and empty string should not mean cwd
…7879) * improve nimsuggest/tester * koch improvements
further diffs factored out from #17865 to keep the more tricky PR clean of unrelated changes