load configuration data when constructing a new Environment - close #60

This commit is contained in:
josh committed 2018-11-23 21:23:19 -05:00
1 parent 6dd9c835ce
commit bfdf3a12fd
5 files changed
+84 -108

No files matched your search

+6
View File
@@ -134,6 +134,12 @@ EOF
env = ENV.to_h
env["PATH"] = "#{@build_test_run_dir}/_bin#{File::PATH_SEPARATOR}#{env["PATH"]}"
stdout, stderr, status = Open3.capture3(env, *command)
File.open("#{@build_test_run_dir}/.stdout", "wb") do |fh|
fh.write(stdout)
end
File.open("#{@build_test_run_dir}/.stderr", "wb") do |fh|
fh.write(stderr)
end
end
# Remove output lines generated as a result of the test environment
stderr = stderr.lines.find_all do |line|