Skip to content

Commit 62934bf

Browse files
committed
fixes for test runner script
1 parent bd97bcf commit 62934bf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

exe/arduino_ci_remote.rb

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def assure(message, &block)
5454
installed_library_path = assure("Installing library under test") { @arduino_cmd.install_local_library(".") }
5555
library_examples = @arduino_cmd.library_examples(installed_library_path)
5656
cpp_library = ArduinoCI::CppLibrary.new(installed_library_path)
57+
attempt("Library installed at #{installed_library_path}") { true }
5758

5859
# gather up all required boards so we can install them up front.
5960
# start with the "platforms to unittest" and add the examples

lib/arduino_ci/cpp_library.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class CppLibrary
1919
attr_reader :last_cmd
2020

2121
def initialize(base_dir)
22-
@base_dir = base_dir
22+
@base_dir = File.expand_path(base_dir)
2323
@artifacts = []
2424
@last_err = ""
2525
@last_out = ""
@@ -115,9 +115,9 @@ def flag_args(ci_gcc_config)
115115
# All GCC command line args for building any unit test
116116
def test_args(aux_libraries, ci_gcc_config)
117117
# TODO: something with libraries?
118-
cgc = ci_gcc_config
119118
ret = include_args(aux_libraries) + cpp_files_arduino + cpp_files_unittest + cpp_files
120119
unless ci_gcc_config.nil?
120+
cgc = ci_gcc_config
121121
ret = feature_args(cgc) + warning_args(cgc) + define_args(cgc) + flag_args(cgc) + ret
122122
end
123123
ret

0 commit comments

Comments
 (0)