Lines Matching full:container
43 # container, so it's prefered to avoid dependency on devserver.
49 # Name of test script file to run in container.
51 # Test script to run in container to verify autotest code setup.
73 raise Exception('The container\\\'s hostname must start with `test-`.')
185 """Test setup base container works.
189 logging.info('Rebuild base container in folder %s.', container_path)
192 logging.info('Base container created: %s', image.get().name)
196 """Test container can be created from base container.
199 @param container_id: ID of the test container.
201 container failures.
203 @return: A Container object created for the test container.
205 logging.info('Create test container.')
207 container = bucket.setup_test(container_id, TEST_JOB_ID,
214 container.attach_run('echo $\'[AUTOSERV]\ntesting_mode: True\' >>'
226 container.attach_run('python %s' % container_create_key_script)
228 return container
231 def test_share(container): argument
232 """Test container can share files with the host.
234 @param container: The test container.
237 'from the host running the container..')
253 container.attach_run('mv %s %s' % (container_test_script,
255 container.attach_run('python %s %s' % (container_test_script_dest,
258 raise Exception('Results created in container can not be accessed from '
263 'container.')
266 def test_autoserv(container): argument
267 """Test container can run autoserv command.
269 @param container: The test container.
278 container.attach_run(AUTOSERV_COMMAND)
284 status_log = container.attach_run(command='cat %s' % container_status_log
287 raise Exception('Failed to read status.log in container.')
290 def test_package_install(container): argument
291 """Test installing package in container.
293 @param container: The test container.
297 container.attach_run('which atop')
298 container.attach_run('python -c "import acora"')
301 def test_ssh(container, remote): argument
302 """Test container can run ssh to remote server.
304 @param container: The test container.
307 @raise: error.CmdError if container can't ssh to remote server.
310 container.attach_run('ssh %s -a -x -o StrictHostKeyChecking=no '
349 container = setup_test(bucket, container_id, options.skip_cleanup)
350 test_share(container)
351 test_autoserv(container)
353 test_ssh(container, options.dut)
355 test_ssh(container, options.devserver)
357 test_package_install(container)