Class: TinyCI::Testers::RktTester
- Defined in:
- lib/tinyci/testers/rkt_tester.rb
Instance Method Summary collapse
Methods inherited from Executor
Methods included from Subprocesses
#execute, #execute_pipe, #execute_stream
Constructor Details
This class inherits a constructor from TinyCI::Executor
Instance Method Details
#test ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/tinyci/testers/rkt_tester.rb', line 6 def test cmd = [ 'sudo', 'rkt', 'run', '--net=host', '--insecure-options=image', '--volume', "src,kind=host,source=#{@config[:target]}/src,readOnly=false", '--mount', "volume=src,target=#{@config[:src_path]}", @config[:image], '--working-dir', @config[:src_path], set_env, '--exec', @config[:command] ].flatten log_info "RKT test command: #{cmd.join(' ')}" execute_stream(*cmd, label: 'test') end |