lib/autoproj/aruba_minitest.rb in autoproj-2.10.2 vs lib/autoproj/aruba_minitest.rb in autoproj-2.11.0
- old
+ new
@@ -23,10 +23,21 @@
def teardown
stop_all_commands
super
end
+ def generate_local_gemfile
+ path = expand_path("Gemfile.local")
+ File.open(path, 'w') do |io|
+ io.write <<~GEMFILE
+ source "https://rubygems.org"
+ gem "autoproj", path: "#{File.expand_path("../../", __dir__)}"
+ GEMFILE
+ end
+ path
+ end
+
def run_command_and_stop(*args, fail_on_error: true, **kwargs)
cmd = run_command(*args, **kwargs)
cmd.stop
if fail_on_error
assert_command_finished_successfully(cmd)
@@ -34,9 +45,13 @@
cmd
end
def run_command(*args, **kwargs)
@aruba_api.run_command(*args, **kwargs)
+ end
+
+ def cd(*args) # also defined by Rake
+ @aruba_api.cd(*args)
end
def chmod(*args) # also defined by Rake
@aruba_api.chmod(*args)
end