Skip to content

Commit

Permalink
ruby work -- inlining the output of the max process so we can see it …
Browse files Browse the repository at this point in the history
…when run on a remote machine.
  • Loading branch information
Timothy Place committed Aug 25, 2016
1 parent 9b50f5b commit d4d68bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ruby/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ def waitForAllTestCompletion
def launchMax
if RUBY_PLATFORM.match(/darwin/)
if @maxfolder.match(/\.app\/*$/) # check if app name given directly
`open "#{@maxfolder}/Contents/MacOS/Max"`
# `open "#{@maxfolder}/Contents/MacOS/Max"`
IO.popen("#{@maxfolder}/Contents/MacOS/Max")
else # nope, just a folder name, so assume Max.app
`open "#{@maxfolder}/Max.app/Contents/MacOS/Max"`
# `open "#{@maxfolder}/Max.app/Contents/MacOS/Max"`
IO.popen("#{@maxfolder}/Max.app/Contents/MacOS/Max")
end
else
IO.popen("#{@maxfolder}/Max.exe")
Expand Down Expand Up @@ -202,6 +204,7 @@ def launchMax

sleep 5 # hack -- the db might still be open because it doesn't get flushed in a quittask...

puts " opening database at #{@testdbPath}"
db = SQLite3::Database.new( "#{@testdbPath}" )

testcount = db.execute("SELECT test_name FROM tests WHERE test_start >= Datetime('#{@starttime}') ").length
Expand Down

0 comments on commit d4d68bb

Please sign in to comment.