Lines Matching full:container
36 # container, so it's prefered to avoid dependency on devserver.
42 # Name of test script file to run in container.
44 # Test script to run in container to verify autotest code setup.
101 """Test setup base container works.
105 logging.info('Rebuild base container in folder %s.', bucket.container_path)
112 """Test container can be created from base container.
115 @param name: Name of the test container.
117 container failures.
119 @return: A Container object created for the test container.
121 logging.info('Create test container.')
123 container = bucket.setup_test(name, TEST_JOB_ID, AUTOTEST_SERVER_PKG,
127 container.attach_run('echo $\'[AUTOSERV]\ntesting_mode: True\' >>'
129 return container
132 def test_share(container): argument
133 """Test container can share files with the host.
135 @param container: The test container.
138 'from the host running the container..')
150 container.attach_run('mv %s %s' % (container_test_script,
152 container.attach_run('python %s %s' % (container_test_script_dest,
155 raise Exception('Results created in container can not be accessed from '
160 'container.')
163 def test_autoserv(container): argument
164 """Test container can run autoserv command.
166 @param container: The test container.
175 container.attach_run(AUTOSERV_COMMAND)
181 status_log = container.attach_run(command='cat %s' % container_status_log
184 raise Exception('Failed to read status.log in container.')
187 def test_package_install(container): argument
188 """Test installing package in container.
190 @param container: The test container.
194 container.attach_run('which atop')
195 container.attach_run('python -c "import selenium"')
198 def test_ssh(container, remote): argument
199 """Test container can run ssh to remote server.
201 @param container: The test container.
204 @raise: error.CmdError if container can't ssh to remote server.
207 container.attach_run('ssh %s -a -x -o StrictHostKeyChecking=no '
238 # container can be unprivileged container.
252 container = setup_test(bucket, container_test_name, options.skip_cleanup)
253 test_share(container)
254 test_autoserv(container)
256 test_ssh(container, options.dut)
258 test_ssh(container, options.devserver)
260 test_package_install(container)