Merge lp:~leftyfb/checkbox/checkbox-1570098 into lp:checkbox

Proposed by Mike Rushton
Status: Merged
Approved by: Jeff Lane 
Approved revision: 4304
Merged at revision: 4305
Proposed branch: lp:~leftyfb/checkbox/checkbox-1570098
Merge into: lp:checkbox
Diff against target: 27 lines (+9/-1)
1 file modified
providers/plainbox-provider-checkbox/bin/virtualization (+9/-1)
To merge this branch: bzr merge lp:~leftyfb/checkbox/checkbox-1570098
Reviewer Review Type Date Requested Status
Jeff Lane  Approve
Review via email: mp+291826@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jeff Lane  (bladernr) wrote :

Tested on Power systems by mike while we're sprinting. approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'providers/plainbox-provider-checkbox/bin/virtualization'
2--- providers/plainbox-provider-checkbox/bin/virtualization 2016-03-04 21:59:26 +0000
3+++ providers/plainbox-provider-checkbox/bin/virtualization 2016-04-13 21:42:30 +0000
4@@ -110,7 +110,9 @@
5 'qemu_bin': 'qemu-system-ppc64',
6 'qemu_disk_type': QEMU_DISK_TYPE_VIRTIO,
7 'qemu_extra_args': [
8- '-machine', 'pseries',
9+ '-enable-kvm',
10+ '-machine', 'pseries,usb=off',
11+ '-cpu', 'POWER8',
12 ],
13 },
14 }
15@@ -444,7 +446,13 @@
16 image = args.image
17
18 kvm_test = KVMTest(image, timeout, args.log_file)
19+ # If arch is ppc64el, disable smt
20+ if kvm_test.arch == 'ppc64el':
21+ os.system("/usr/sbin/ppc64_cpu --smt=off")
22 result = kvm_test.start()
23+ # If arch is ppc64el, re-enable smt
24+ if kvm_test.arch == 'ppc64el':
25+ os.system("/usr/sbin/ppc64_cpu --smt=on")
26
27 sys.exit(result)
28

Subscribers

People subscribed via source and target branches