Merge lp:~roadmr/checkbox/1217937-gpu-test-calledprocesserror into lp:checkbox

Proposed by Daniel Manrique
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 2332
Merged at revision: 2334
Proposed branch: lp:~roadmr/checkbox/1217937-gpu-test-calledprocesserror
Merge into: lp:checkbox
Diff against target: 35 lines (+11/-3)
2 files modified
checkbox-old/debian/changelog (+4/-0)
checkbox-old/scripts/gpu_test (+7/-3)
To merge this branch: bzr merge lp:~roadmr/checkbox/1217937-gpu-test-calledprocesserror
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Daniel Manrique (community) Needs Resubmitting
Review via email: mp+182926@code.launchpad.net

Commit message

Fix gpu_test failing with an exception if wmctrl returns failure. I'm not 100% sure the behavior once we catch the exception is correct, but at least this avoids the nasty trace.

Description of the change

Fix gpu_test failing with an exception if wmctrl returns failure. I'm not 100% sure the behavior once we catch the exception is correct, but at least this avoids the nasty trace.

To post a comment you must log in.
2326. By Daniel Manrique

"Fixes a bug where logs were compressed in an incorrect directory, causing attachment to fail. Jeffrey Chang fixed this really. [r=bladernr][bug=1218186][author=roadmr]"

2327. By Jeff Marcom

"automatic merge by tarmac [r=zkrynicki][bug=][author=jeffmarcom]"

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

please rebase

review: Needs Fixing
2328. By Jeff Lane 

"scripts/storage test now checks to make sure there's enough free disk space before running bonnie++ and adjusts bonnie++ parameters accordingly if there is not enough free disk space. This avoids a bug causing false failures on systems with small disk drives. [r=zkrynicki][bug=1217268][author=bladernr]"

2329. By Daniel Manrique

"The linked bug is about a test failing because it's comparing xinput lists from before and after booting, and even though the devices may be the same, they are in different orders, so the comparison fails.The fix is simply to sort xinput output to ensure valid comparisons. [r=zkrynicki][bug=1218188][author=roadmr]"

2330. By Zygmunt Krynicki

"automatic merge by tarmac [r=roadmr][bug=][author=zkrynicki]"

2331. By Zygmunt Krynicki

"automatic merge by tarmac [r=zkrynicki][bug=][author=zkrynicki]"

2332. By Daniel Manrique

scripts/gpu_test: Catch CalledProcessError when calling wmctrl, to avoid crashes that cause the test to hang (LP: #1217937)

Revision history for this message
Daniel Manrique (roadmr) wrote :

Rebased to fix the changelog conflict

review: Needs Resubmitting
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox-old/debian/changelog'
2--- checkbox-old/debian/changelog 2013-08-30 12:39:32 +0000
3+++ checkbox-old/debian/changelog 2013-08-30 14:55:16 +0000
4@@ -23,6 +23,10 @@
5 * checkbox-old/scripts/fwts_test: Added the following new tests:
6 method, msr, aspm, klog, oops and uefirtvariable (LP: #1202493)
7
8+ [ Daniel Manrique ]
9+ * scripts/gpu_test: Catch CalledProcessError when calling wmctrl, to avoid
10+ crashes that cause the test to hang (LP: #1217937)
11+
12 -- Brendan Donegan <brendan.donegan@canonical.com> Fri, 23 Aug 2013 14:22:13 +0100
13
14 checkbox (0.16.9) saucy; urgency=low
15
16=== modified file 'checkbox-old/scripts/gpu_test'
17--- checkbox-old/scripts/gpu_test 2013-08-15 13:47:30 +0000
18+++ checkbox-old/scripts/gpu_test 2013-08-30 14:55:16 +0000
19@@ -155,9 +155,13 @@
20 GlxWindows.append(GlxThread())
21 GlxWindows[i].start()
22 time.sleep(5)
23- windows = subprocess.check_output(
24- 'wmctrl -l | grep glxgears',
25- shell=True)
26+ try:
27+ windows = subprocess.check_output(
28+ 'wmctrl -l | grep glxgears',
29+ shell=True)
30+ except subprocess.CalledProcessError as er:
31+ print("WARNING: Got an exception %s" % er)
32+ windows = ""
33 for app in sorted(windows.splitlines(), reverse=True):
34 if not b'glxgears' in app:
35 continue

Subscribers

People subscribed via source and target branches