Skip to content

Conversation

@timotheecour
Copy link
Member

@timotheecour timotheecour commented Apr 28, 2021

further diffs factored out from #17865 to keep the more tricky PR clean of unrelated changes

@timotheecour timotheecour changed the title improve nimsuggest/tester improve nimsuggest/tester, minor improvements to koch.nim Apr 28, 2021

proc parseTest(filename: string; epcMode=false): Test =
const cursorMarker = "#[!]#"
let nimsug = curDir & addFileExt("nimsuggest", ExeExt)
Copy link
Member Author

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:
Copy link
Member Author

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: ""
Copy link
Member Author

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

@timotheecour timotheecour added the Ready For Review (please take another look): ready for next review round label Apr 28, 2021
@timotheecour timotheecour requested a review from ringabout April 28, 2021 01:30
@Araq Araq merged commit a424075 into nim-lang:devel Apr 29, 2021
@timotheecour timotheecour deleted the pr_nimsuggest_tester_improve branch April 29, 2021 17:33
@timotheecour timotheecour removed the Ready For Review (please take another look): ready for next review round label Apr 29, 2021
PMunch pushed a commit to PMunch/Nim that referenced this pull request Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants