Skip to content

Commit ddf67d2

Browse files
committed
Explicit reporting of free bytes after compilation
1 parent e579476 commit ddf67d2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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`

exe/arduino_ci.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,13 @@ def perform_example_compilation_tests(cpp_library, config)
542542
end
543543
end
544544

545+
# reporting or enforcing of free space
546+
usage = @backend.last_bytes_usage
547+
@log.inform("Free space (bytes) after compilation") { usage[:free] }
545548
next if @cli_options[:min_free_space].nil?
546549

547-
usage = @backend.last_bytes_usage
548550
min_free_space = @cli_options[:min_free_space]
549-
@log.attempt("Checking that free space of #{usage[:free]} is less than desired minimum #{min_free_space}") do
551+
@log.attempt("Free space exceeds desired minimum #{min_free_space}") do
550552
min_free_space <= usage[:free]
551553
end
552554
end

0 commit comments

Comments
 (0)