fix benches interfering with testing
This commit is contained in:
parent
dc560aaa5e
commit
19dd7b96d6
@ -6,8 +6,6 @@ module BenchTests
|
|||||||
|
|
||||||
include RuntimeTests
|
include RuntimeTests
|
||||||
|
|
||||||
ENV["REMOTE_PI"] = "pi" unless ENV.has_key?("REMOTE_PI")
|
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@stdout = ""
|
@stdout = ""
|
||||||
@machine = Register.machine.boot
|
@machine = Register.machine.boot
|
||||||
@ -28,4 +26,8 @@ HERE
|
|||||||
def check_remote val
|
def check_remote val
|
||||||
check_r val , true
|
check_r val , true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def connected
|
||||||
|
make_box
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -57,6 +57,10 @@ module RuntimeTests
|
|||||||
puts "remote " + ENV["REMOTE_PI"]
|
puts "remote " + ENV["REMOTE_PI"]
|
||||||
user , rest = ENV["REMOTE_PI"].split("@")
|
user , rest = ENV["REMOTE_PI"].split("@")
|
||||||
machine , port = rest.to_s.split(":")
|
machine , port = rest.to_s.split(":")
|
||||||
|
make_box machine , port , user
|
||||||
|
end
|
||||||
|
|
||||||
|
def make_box machine = nil , port = nil , user = nil
|
||||||
@@conn = Rye::Box.new(machine || "localhost" , :port => (port || 2222) , :user => (user || "pi"))
|
@@conn = Rye::Box.new(machine || "localhost" , :port => (port || 2222) , :user => (user || "pi"))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user