Skip to content

Commit a087a19

Browse files
committed
Allow directory names to contain spaces
1 parent f0fce10 commit a087a19

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1414
### Removed
1515

1616
### Fixed
17+
- Spaces in the names of project directores no longer cause unit test binaries to fail execution
1718

1819
### Security
1920

lib/arduino_ci/cpp_library.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require 'find'
22
require "arduino_ci/host"
33
require 'pathname'
4+
require 'shellwords'
45

56
HPP_EXTENSIONS = [".hpp", ".hh", ".h", ".hxx", ".h++"].freeze
67
CPP_EXTENSIONS = [".cpp", ".cc", ".c", ".cxx", ".c++"].freeze
@@ -287,7 +288,7 @@ def run_test_file(executable)
287288
@last_cmd = executable
288289
@last_out = ""
289290
@last_err = ""
290-
Host.run_and_output(executable.to_s)
291+
Host.run_and_output(executable.to_s.shellescape)
291292
end
292293

293294
end

0 commit comments

Comments
 (0)