Skip to content
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

Periodically check for newer versions of scope. #907

Merged
merged 4 commits into from
Feb 4, 2016
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/lint
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function spell_check {
filename="$1"
local lint_result=0

if grep -iH --color=always psueod "${filename}"; then
if grep -iH --color=always 'psueod\|availible' "${filename}"; then
echo "${filename}: spelling mistake"
lint_result=1
fi
Expand Down
6 changes: 3 additions & 3 deletions tools/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ func (ts tests) Less(i, j int) bool {
return ts[i].name < ts[j].name
}

func (ts *tests) pick(availible int) (test, bool) {
// pick the first test that fits in the availible hosts
func (ts *tests) pick(available int) (test, bool) {
// pick the first test that fits in the available hosts
for i, test := range *ts {
if test.hosts <= availible {
if test.hosts <= available {
*ts = append((*ts)[:i], (*ts)[i+1:]...)
return test, true
}
Expand Down