~canonical-platform-qa/ubuntu-system-tests/qemu-build-snap

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/host/qemu.py

  • Committer: Richard Huddie
  • Date: 2016-12-21 16:25:01 UTC
  • Revision ID: richard.huddie@canonical.com-20161221162501-04omopwbpa9ljuoi
Docstring updates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
 
240
240
 
241
241
def create_setup_config(initrd_work_dir, snap):
242
 
    """Create json file containing setup configuration in qemu scripts dir.
 
242
    """Create json file containing setup configuration in initrd work dir.
243
243
    :param initrd_work_dir: Working dir to save the json file.
244
 
    :param snap: Whether snap or classic session should be used.
 
244
    :param snap: Whether snap or default session should be used.
245
245
    """
246
246
    config_file = os.path.join(initrd_work_dir, 'qemu-setup-config.json')
247
247
    config = {'snap': snap}
259
259
    :param password: Password of user account.
260
260
    :param display_name: Display name of user account.
261
261
    :param auto_login: Whether to enable auto login for user.
 
262
    :param snap: Whether snap or default session should be used.
262
263
    :return: Path of initrd file with installer scripts added.
263
264
    """
264
265
    initrd_path = os.path.join(working_dir, CASPER_INITRD)