Lines Matching full:container
42 # container, so it's prefered to avoid dependency on devserver.
48 # Name of test script file to run in container.
50 # Test script to run in container to verify autotest code setup.
72 raise Exception('The container\\\'s hostname must start with `test-`.')
184 """Test setup base container works.
188 logging.info('Rebuild base container in folder %s.', container_path)
191 logging.info('Base container created: %s', image.get().name)
195 """Test container can be created from base container.
198 @param container_id: ID of the test container.
200 container failures.
202 @return: A Container object created for the test container.
204 logging.info('Create test container.')
206 container = bucket.setup_test(container_id, TEST_JOB_ID,
213 container.attach_run('echo $\'[AUTOSERV]\ntesting_mode: True\' >>'
225 container.attach_run('python %s' % container_create_key_script)
227 return container
230 def test_share(container): argument
231 """Test container can share files with the host.
233 @param container: The test container.
236 'from the host running the container..')
252 container.attach_run('mv %s %s' % (container_test_script,
254 container.attach_run('python %s %s' % (container_test_script_dest,
257 raise Exception('Results created in container can not be accessed from '
262 'container.')
265 def test_autoserv(container): argument
266 """Test container can run autoserv command.
268 @param container: The test container.
277 container.attach_run(AUTOSERV_COMMAND)
283 status_log = container.attach_run(command='cat %s' % container_status_log
286 raise Exception('Failed to read status.log in container.')
289 def test_package_install(container): argument
290 """Test installing package in container.
292 @param container: The test container.
296 container.attach_run('which atop')
297 container.attach_run('python -c "import acora"')
300 def test_ssh(container, remote): argument
301 """Test container can run ssh to remote server.
303 @param container: The test container.
306 @raise: error.CmdError if container can't ssh to remote server.
309 container.attach_run('ssh %s -a -x -o StrictHostKeyChecking=no '
348 container = setup_test(bucket, container_id, options.skip_cleanup)
349 test_share(container)
350 test_autoserv(container)
352 test_ssh(container, options.dut)
354 test_ssh(container, options.devserver)
356 test_package_install(container)