Skip to content

Commit 59a89d8

Browse files
committed
Explicit reporting of free bytes after compilation
1 parent 15a3811 commit 59a89d8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99
### Added
1010
- Add util/atomic.h
1111
- `Logger` class to centralize CI runner script logging (in particular, indentation)
12+
- Explicit reporting of free bytes after compilation
1213

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

exe/arduino_ci.rb

Lines changed: 4 additions & 2 deletions
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 the free space of #{usage[:free]} is at least the desired minimum of #{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)