File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -191,18 +191,21 @@ fn test_default_app_ubuntu20() {
191
191
STDERR.sync = true
192
192
193
193
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
199
201
end
200
202
201
203
def run!(cmd)
202
- puts "$ #{cmd}"
203
- output = `#{cmd} 2>&1`
204
+ output = String.new
205
+ output << "$ #{cmd}\n"
206
+ output << `#{cmd} 2>&1`
204
207
raise "Command #{cmd} failed with output #{output}" unless $?.success?
205
- puts output
208
+ output
206
209
end
207
210
"# ) . unwrap ( ) ;
208
211
You can’t perform that action at this time.
0 commit comments