Skip to content

Commit edc6017

Browse files
committed
Attempt to reduce non-deterministic output
#409
1 parent 109fae4 commit edc6017

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

buildpacks/ruby/tests/integration_test.rs

+11-8
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,21 @@ fn test_default_app_ubuntu20() {
191191
STDERR.sync = true
192192
193193
task "assets:precompile" do
194-
puts "START RAKE TEST OUTPUT"
195-
run!("echo $PATH")
196-
run!("which -a rake")
197-
run!("which -a ruby")
198-
puts "END RAKE TEST OUTPUT"
194+
out = String.new
195+
out << "START RAKE TEST OUTPUT\n"
196+
out << run!("echo $PATH")
197+
out << run!("which -a rake")
198+
out << run!("which -a ruby")
199+
out << "END RAKE TEST OUTPUT\n"
200+
puts out
199201
end
200202
201203
def run!(cmd)
202-
puts "$ #{cmd}"
203-
output = `#{cmd} 2>&1`
204+
output = String.new
205+
output << "$ #{cmd}\n"
206+
output << `#{cmd} 2>&1`
204207
raise "Command #{cmd} failed with output #{output}" unless $?.success?
205-
puts output
208+
output
206209
end
207210
"#).unwrap();
208211

0 commit comments

Comments
 (0)