Skip to content

Test for minimum free memory #308

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

Merged
merged 4 commits into from
Sep 22, 2021
Merged

Conversation

jgfoster
Copy link
Member

Fix #307.

Copy link
Contributor

@prestoncarman prestoncarman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jgfoster jgfoster merged commit d058804 into Arduino-CI:master Sep 22, 2021
@jgfoster jgfoster deleted the free_memory branch September 22, 2021 21:57
Comment on lines +487 to +497
if ret
output = @backend.last_msg
puts output
i = output.index("leaving")
free_space = output[i + 8..-1].to_i
min_free_space = @cli_options[:min_free_space]
if free_space < min_free_space
puts "Free space of #{free_space} is less than minimum of #{min_free_space}"
ret = false
end
else
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will clean this up in #335

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.

Support for memory usage testing
3 participants