Skip to content

Commit 2a58c7c

Browse files
committed
Explicit reporting of free bytes after compilation
1 parent c8cba88 commit 2a58c7c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [Unreleased]
99
### Added
1010
- `Logger` class to centralize CI runner script logging (in particular, indentation)
11+
- Explicit reporting of free bytes after compilation
1112

1213
### Changed
1314
- `arduino_ci.rb` uses new `Logger`

Diff for: exe/arduino_ci.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -539,11 +539,13 @@ def perform_example_compilation_tests(cpp_library, config)
539539
end
540540
end
541541

542+
# reporting or enforcing of free space
543+
usage = @backend.last_bytes_usage
544+
@log.inform("Free space (bytes) after compilation") { usage[:free] }
542545
next if @cli_options[:min_free_space].nil?
543546

544-
usage = @backend.last_bytes_usage
545547
min_free_space = @cli_options[:min_free_space]
546-
@log.attempt("Checking that free space of #{usage[:free]} is less than desired minimum #{min_free_space}") do
548+
@log.attempt("Free space exceeds desired minimum #{min_free_space}") do
547549
min_free_space <= usage[:free]
548550
end
549551
end

0 commit comments

Comments
 (0)