Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 59a89d8

Browse filesBrowse files
committed
Explicit reporting of free bytes after compilation
1 parent 15a3811 commit 59a89d8
Copy full SHA for 59a89d8

File tree

2 files changed

+5
-2
lines changed
Filter options

2 files changed

+5
-2
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines 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

Copy file name to clipboardExpand all lines: exe/arduino_ci.rb
+4-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.