lib/kaya/view/results/console.mote in kaya-0.0.11 vs lib/kaya/view/results/console.mote in kaya-0.0.12
- old
+ new
@@ -1,14 +1,17 @@
-<? text = result.bundle_output.split("\n").join("</p><p>") + result.console_output.split("\n").join("</p><p>") unless result.console_output.nil?
+<?
+text = ""
+text += result.bundle_output.split("\n").join("</p><p>") if result.bundle_output
+text += result.console_output.split("\n").join("</p><p>") if result.console_output
if text.empty?
lines = []
begin
File.open("ls_#{result.id}.out","r").each_line do |line|
lines << line
end
rescue
- lines << "Could not get console output"
+ lines << "Wait..."
end
text = lines.join("</small></p><p><small>")
end
suite = Kaya::Suites::Suite.get(result.suite_id)