lib/u3d/unity_runner.rb in u3d-0.9.2 vs lib/u3d/unity_runner.rb in u3d-0.9.3
- old
+ new
@@ -34,10 +34,11 @@
File.delete(log_file) if File.file?(log_file) # We only delete real files
else
log_file = installation.default_log_file
end
+ Utils.ensure_dir File.dirname(log_file)
FileUtils.touch(log_file) unless File.exist? log_file
tail_thread = Thread.new do
begin
if raw_logs
@@ -51,20 +52,20 @@
e.backtrace.each { |l| UI.error " #{l}" }
end
end
# Wait for tail_thread setup to be complete
- sleep 0.5 while tail_thread.status!='sleep'
+ sleep 0.5 while tail_thread.status != 'sleep'
tail_thread.run
begin
args.unshift(installation.exe_path)
if Helper.windows?
args.map! { |a| a =~ / / ? "\"#{a}\"" : a }
else
args.map!(&:shellescape)
end
- # FIXME return value not handled
+
U3dCore::CommandExecutor.execute(command: args, print_all: true)
ensure
sleep 1
Thread.kill(tail_thread)
end