Merge ~jslarraz/ubuntu-security-tools:ram-size-autopkgtest into ubuntu-security-tools:master

Proposed by Jorge Sancho Larraz
Status: Merged
Merged at revision: 7f881263f6c59939df651f54c391db8574da2a22
Proposed branch: ~jslarraz/ubuntu-security-tools:ram-size-autopkgtest
Merge into: ubuntu-security-tools:master
Diff against target: 22 lines (+4/-0)
1 file modified
build-tools/umt (+4/-0)
Reviewer Review Type Date Requested Status
Marc Deslauriers Approve
Review via email: mp+461354@code.launchpad.net

Commit message

umt/autopkgtest: add support for --ram-size option

Description of the change

Some autopkgtest requires more RAM than the default 512MB to complete successfully. That's the case of some tests in python-cryptography.

This MR enables the --ram-size configuration option from the `umt autopkgtest` CLI

To post a comment you must log in.
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/build-tools/umt b/build-tools/umt
2index 408c522..3ff8767 100755
3--- a/build-tools/umt
4+++ b/build-tools/umt
5@@ -3171,6 +3171,8 @@ def cmd_autopkgtest():
6 help="QEMU autopkgtest image name to use for tests (default: {images-path}/autopkgtest-{release}-{arch}.img)")
7 parser.add_argument("-R", "--rebuild-image", dest="rebuild_image", default=False, action='store_true',
8 help="force the rebuild of the QEMU autopkgtest image")
9+ parser.add_argument("--ram-size", dest="ram_size", default=None,
10+ help="RAM assigned to the vm that runs autopkgtest in MB (default: 512)")
11 parser.add_argument("-s", "--skip-baseline", dest="skip_baseline", default=False, action='store_true',
12 help="Don't try and run the tests against the archive build as a baseline")
13 parser.add_argument("-n", "--dry-run", dest="dry_run", default=False, action='store_true',
14@@ -3265,6 +3267,8 @@ def run_autopkgtest_tests(opt, args, details):
15 qemu_arch = "arm"
16 args.append("--qemu-architecture=" + qemu_arch)
17 args.append("--timeout-reboot=300")
18+ if opt.ram_size is not None:
19+ args.append("--ram-size=" + opt.ram_size)
20 if not opt.skip_baseline:
21 if not opt.dry_run:
22 prepare_dir(os.path.join(autopkgtest_dest, prev_version), opt.force)

Subscribers

People subscribed via source and target branches