Merge lp:~brendan-donegan/checkbox/rendercheck_blacklist_repeat into lp:checkbox

Proposed by Brendan Donegan
Status: Merged
Approved by: Daniel Manrique
Approved revision: 2026
Merged at revision: 2027
Proposed branch: lp:~brendan-donegan/checkbox/rendercheck_blacklist_repeat
Merge into: lp:checkbox
Diff against target: 98 lines (+22/-5)
5 files modified
debian/changelog (+7/-3)
jobs/rendercheck.txt.in (+1/-1)
jobs/stress.txt.in (+1/-1)
scripts/graphics_stress_test (+6/-0)
scripts/rendercheck_test (+7/-0)
To merge this branch: bzr merge lp:~brendan-donegan/checkbox/rendercheck_blacklist_repeat
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+157161@code.launchpad.net

Description of the change

The rendercheck repeat test was hogging the runtime of this whole test so after consulting with a graphics expert we made the decision to blacklist it. This branch implements the blacklisting functionality and updates the rendercheck test and stress/graphics test to use it.

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

Looks OK, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-03-29 18:21:40 +0000
3+++ debian/changelog 2013-04-04 16:38:30 +0000
4@@ -1,12 +1,16 @@
5 checkbox (0.15.7) raring; urgency=low
6
7- * Incremented version
8-
9 [ Zygmunt Krynicki ]
10 * jobs/graphics.txt.in, jobs/suspend.txt.in: convert package resource
11 programs to be compatible with plainbox
12
13- -- Brendan Donegan <brendan.donegan@canonical.com> Fri, 29 Mar 2013 10:46:30 +0000
14+ [ Brendan Donegan ]
15+ * scripts/rendercheck_test, scripts/graphics_stress_test,
16+ jobs/rendercheck.txt.in, jobs/stress.txt.in - Allow blacklisting of
17+ specific rendercheck tests and use this to exclude the 'repeat' test
18+ from the set of rendercheck tests that run (LP: #1164566)
19+
20+ -- Brendan Donegan <brendan.donegan@canonical.com> Thu, 04 Apr 2013 17:04:44 +0100
21
22 checkbox (0.15.6) raring; urgency=low
23
24
25=== modified file 'jobs/rendercheck.txt.in'
26--- jobs/rendercheck.txt.in 2013-01-23 21:31:20 +0000
27+++ jobs/rendercheck.txt.in 2013-04-04 16:38:30 +0000
28@@ -2,7 +2,7 @@
29 name: rendercheck/tests
30 requires:
31 package.name == 'x11-apps'
32-command: ( rendercheck_test -d -o $CHECKBOX_DATA/rendercheck-results && echo "Rendercheck tests completed successfully" ) || ( echo "Error running rendercheck. Please see the log $CHECKBOX_DATA/rendercheck-results for details" >&2 && false )
33+command: ( rendercheck_test -b repeat -d -o $CHECKBOX_DATA/rendercheck-results && echo "Rendercheck tests completed successfully" ) || ( echo "Error running rendercheck. Please see the log $CHECKBOX_DATA/rendercheck-results for details" >&2 && false )
34 _description:
35 Runs all of the rendercheck test suites. This test can take a few minutes.
36
37
38=== modified file 'jobs/stress.txt.in'
39--- jobs/stress.txt.in 2013-01-03 20:46:04 +0000
40+++ jobs/stress.txt.in 2013-04-04 16:38:30 +0000
41@@ -172,7 +172,7 @@
42 package.name == 'x11-apps'
43 user: root
44 environ: CHECKBOX_DATA
45-command: graphics_stress_test -d -o $CHECKBOX_DATA/graphics-stress-results && echo "Graphics Stress Test completed successfully" || echo "Graphics Stress Test completed, but there are errors. Please see the log $CHECKBOX_DATA/graphics-stress-results for details" && false
46+command: graphics_stress_test -b repeat -d -o $CHECKBOX_DATA/graphics-stress-results && echo "Graphics Stress Test completed successfully" || echo "Graphics Stress Test completed, but there are errors. Please see the log $CHECKBOX_DATA/graphics-stress-results for details" && false
47 _description:
48 Run the graphics stress test. This test can take a few minutes.
49
50
51=== modified file 'scripts/graphics_stress_test'
52--- scripts/graphics_stress_test 2013-01-22 20:06:57 +0000
53+++ scripts/graphics_stress_test 2013-04-04 16:38:30 +0000
54@@ -324,6 +324,9 @@
55 action='store_true',
56 help='Choose this to add verbose output \
57 for debug purposes')
58+ parser.add_argument('-b', '--blacklist',
59+ nargs='+',
60+ help='Name(s) of rendercheck test(s) to blacklist.')
61 parser.add_argument('-o', '--output',
62 default='',
63 help='The path to the log which will be dumped. \
64@@ -385,6 +388,9 @@
65
66 rendercheck = RenderCheckWrapper(args.temp)
67 tests = rendercheck.get_suites_list()
68+ for test in args.blacklist:
69+ if test in tests:
70+ tests.remove(test)
71
72 # Switch between the tty where X lives and tty10
73 vt_wrap = VtWrapper()
74
75=== modified file 'scripts/rendercheck_test'
76--- scripts/rendercheck_test 2013-01-23 21:01:55 +0000
77+++ scripts/rendercheck_test 2013-04-04 16:38:30 +0000
78@@ -177,6 +177,9 @@
79 Available tests: \
80 %s. \
81 Default is all' % (', '.join(all_tests)))
82+ parser.add_argument('-b', '--blacklist',
83+ nargs='+',
84+ help='The name of a test which should not be run.')
85 parser.add_argument('-d', '--debug',
86 action='store_true',
87 help='Choose this to add verbose output \
88@@ -246,6 +249,10 @@
89 else:
90 tests = args.test.split(',')
91
92+ for test in args.blacklist:
93+ if test in tests:
94+ tests.remove(test)
95+
96 rendercheck = RenderCheck(args.temp)
97 exit_status = rendercheck.run_test(tests, args.iterations,
98 args.debug)

Subscribers

People subscribed via source and target branches