Merge lp:~marcustomlinson/unity-scopes-shell/relax-harness-timeouts into lp:unity-scopes-shell
- relax-harness-timeouts
- Merge into trunk
Proposed by
Marcus Tomlinson
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Paweł Stołowski | ||||
Approved revision: | 352 | ||||
Merged at revision: | 340 | ||||
Proposed branch: | lp:~marcustomlinson/unity-scopes-shell/relax-harness-timeouts | ||||
Merge into: | lp:unity-scopes-shell | ||||
Diff against target: |
310 lines (+48/-27) 13 files modified
CMakeLists.txt (+1/-1) debian/changelog (+6/-0) debian/control (+1/-1) debian/control.in (+1/-1) src/scope-harness/preview/preview-widget.cpp (+1/-1) src/scope-harness/registry/custom-registry.cpp (+15/-2) src/scope-harness/results/result.cpp (+1/-1) src/scope-harness/scope-harness.cpp (+2/-2) src/scope-harness/test-utils.cpp (+8/-8) src/scope-harness/test-utils.h (+2/-0) src/scope-harness/view/preview-view.cpp (+1/-1) src/scope-harness/view/results-view.cpp (+8/-8) src/scope-harness/view/settings-view.cpp (+1/-1) |
||||
To merge this branch: | bzr merge lp:~marcustomlinson/unity-scopes-shell/relax-harness-timeouts | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paweł Stołowski (community) | Approve | ||
unity-api-1-bot | continuous-integration | Needs Fixing | |
Review via email: mp+304459@code.launchpad.net |
Commit message
Increase scope-harness timeouts to fix flaky scope tests (incl. autopkg) on slow builders.
Description of the change
To post a comment you must log in.
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote : | # |
review:
Needs Fixing
(continuous-integration)
Revision history for this message
Paweł Stołowski (stolowski) wrote : | # |
Looks good, thanks for looking at it! Even if it only improves the situation and doesn't fix all the test flakiness, it's definately worth having! +1
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2016-05-31 09:31:57 +0000 | |||
3 | +++ CMakeLists.txt 2016-09-08 08:53:48 +0000 | |||
4 | @@ -51,7 +51,7 @@ | |||
5 | 51 | find_package(Qt5Test) | 51 | find_package(Qt5Test) |
6 | 52 | find_package(Boost COMPONENTS regex REQUIRED) | 52 | find_package(Boost COMPONENTS regex REQUIRED) |
7 | 53 | 53 | ||
9 | 54 | pkg_check_modules(SCOPESLIB REQUIRED libunity-scopes>=1.0.5) | 54 | pkg_check_modules(SCOPESLIB REQUIRED libunity-scopes>=1.0.7) |
10 | 55 | pkg_check_modules(SCOPES_API REQUIRED unity-shell-scopes=12) | 55 | pkg_check_modules(SCOPES_API REQUIRED unity-shell-scopes=12) |
11 | 56 | 56 | ||
12 | 57 | pkg_check_modules(GSETTINGSQT REQUIRED gsettings-qt) | 57 | pkg_check_modules(GSETTINGSQT REQUIRED gsettings-qt) |
13 | 58 | 58 | ||
14 | === modified file 'debian/changelog' | |||
15 | --- debian/changelog 2016-08-10 14:55:34 +0000 | |||
16 | +++ debian/changelog 2016-09-08 08:53:48 +0000 | |||
17 | @@ -1,3 +1,9 @@ | |||
18 | 1 | unity-scopes-shell (0.5.8-0ubuntu1) UNRELEASED; urgency=medium | ||
19 | 2 | |||
20 | 3 | * Increase scope-harness timeouts to assist scope testing on slow builders. | ||
21 | 4 | |||
22 | 5 | -- Marcus Tomlinson <marcus.tomlinson@canonical.com> Thu, 08 Sep 2016 10:47:19 +0200 | ||
23 | 6 | |||
24 | 1 | unity-scopes-shell (0.5.7+16.10.20160624.2-0ubuntu2) yakkety; urgency=medium | 7 | unity-scopes-shell (0.5.7+16.10.20160624.2-0ubuntu2) yakkety; urgency=medium |
25 | 2 | 8 | ||
26 | 3 | * No-change rebuild for boost soname change. | 9 | * No-change rebuild for boost soname change. |
27 | 4 | 10 | ||
28 | === modified file 'debian/control' | |||
29 | --- debian/control 2016-06-15 20:18:25 +0000 | |||
30 | +++ debian/control 2016-09-08 08:53:48 +0000 | |||
31 | @@ -9,7 +9,7 @@ | |||
32 | 9 | libboost-python-dev, | 9 | libboost-python-dev, |
33 | 10 | libboost-regex-dev, | 10 | libboost-regex-dev, |
34 | 11 | libunity-api-dev (>= 7.111), | 11 | libunity-api-dev (>= 7.111), |
36 | 12 | libunity-scopes-dev (>= 1.0.5~), | 12 | libunity-scopes-dev (>= 1.0.7~), |
37 | 13 | libgsettings-qt-dev (>= 0.1), | 13 | libgsettings-qt-dev (>= 0.1), |
38 | 14 | libqtdbustest1-dev (>= 0.2), | 14 | libqtdbustest1-dev (>= 0.2), |
39 | 15 | libqtdbusmock1-dev (>= 0.2), | 15 | libqtdbusmock1-dev (>= 0.2), |
40 | 16 | 16 | ||
41 | === modified file 'debian/control.in' | |||
42 | --- debian/control.in 2016-05-31 09:31:57 +0000 | |||
43 | +++ debian/control.in 2016-09-08 08:53:48 +0000 | |||
44 | @@ -9,7 +9,7 @@ | |||
45 | 9 | libboost-python-dev, | 9 | libboost-python-dev, |
46 | 10 | libboost-regex-dev, | 10 | libboost-regex-dev, |
47 | 11 | libunity-api-dev (>= 7.111), | 11 | libunity-api-dev (>= 7.111), |
49 | 12 | libunity-scopes-dev (>= 1.0.5~), | 12 | libunity-scopes-dev (>= 1.0.7~), |
50 | 13 | libgsettings-qt-dev (>= 0.1), | 13 | libgsettings-qt-dev (>= 0.1), |
51 | 14 | libqtdbustest1-dev (>= 0.2), | 14 | libqtdbustest1-dev (>= 0.2), |
52 | 15 | libqtdbusmock1-dev (>= 0.2), | 15 | libqtdbusmock1-dev (>= 0.2), |
53 | 16 | 16 | ||
54 | === modified file 'src/scope-harness/preview/preview-widget.cpp' | |||
55 | --- src/scope-harness/preview/preview-widget.cpp 2016-02-17 15:49:37 +0000 | |||
56 | +++ src/scope-harness/preview/preview-widget.cpp 2016-09-08 08:53:48 +0000 | |||
57 | @@ -160,7 +160,7 @@ | |||
58 | 160 | 160 | ||
59 | 161 | TestUtils::throwIfNot(p->m_previewModel->processingAction(), "Should be processing action"); | 161 | TestUtils::throwIfNot(p->m_previewModel->processingAction(), "Should be processing action"); |
60 | 162 | QSignalSpy spy(p->m_previewModel, SIGNAL(processingActionChanged())); | 162 | QSignalSpy spy(p->m_previewModel, SIGNAL(processingActionChanged())); |
62 | 163 | TestUtils::throwIfNot(spy.wait(), "Processing action property didn't change"); | 163 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Processing action property didn't change"); |
63 | 164 | TestUtils::throwIf(p->m_previewModel->processingAction(), "Should have finished processing action"); | 164 | TestUtils::throwIf(p->m_previewModel->processingAction(), "Should have finished processing action"); |
64 | 165 | 165 | ||
65 | 166 | view::PreviewView::SPtr previewView = p->m_previewView.lock(); | 166 | view::PreviewView::SPtr previewView = p->m_previewView.lock(); |
66 | 167 | 167 | ||
67 | === modified file 'src/scope-harness/registry/custom-registry.cpp' | |||
68 | --- src/scope-harness/registry/custom-registry.cpp 2015-08-19 13:19:22 +0000 | |||
69 | +++ src/scope-harness/registry/custom-registry.cpp 2016-09-08 08:53:48 +0000 | |||
70 | @@ -38,6 +38,11 @@ | |||
71 | 38 | namespace | 38 | namespace |
72 | 39 | { | 39 | { |
73 | 40 | 40 | ||
74 | 41 | const static int c_processTimeout = 60000; | ||
75 | 42 | const static int c_twoWayTimeout = 60000; | ||
76 | 43 | const static int c_locateTimeout = 60000; | ||
77 | 44 | const static int c_registryTimeout = 60000; | ||
78 | 45 | |||
79 | 41 | const static QString RUNTIME_CONFIG = R"( | 46 | const static QString RUNTIME_CONFIG = R"( |
80 | 42 | [Runtime] | 47 | [Runtime] |
81 | 43 | Registry.Identity = Registry | 48 | Registry.Identity = Registry |
82 | @@ -55,11 +60,15 @@ | |||
83 | 55 | Scope.InstallDir = %3 | 60 | Scope.InstallDir = %3 |
84 | 56 | Click.InstallDir = %4 | 61 | Click.InstallDir = %4 |
85 | 57 | OEM.InstallDir = %5 | 62 | OEM.InstallDir = %5 |
86 | 63 | Process.Timeout = %6 | ||
87 | 58 | )"; | 64 | )"; |
88 | 59 | 65 | ||
89 | 60 | const static QString MW_CONFIG = R"( | 66 | const static QString MW_CONFIG = R"( |
90 | 61 | [Zmq] | 67 | [Zmq] |
91 | 62 | EndpointDir = %1 | 68 | EndpointDir = %1 |
92 | 69 | Default.Twoway.Timeout = %2 | ||
93 | 70 | Locate.Timeout = %3 | ||
94 | 71 | Registry.Timeout = %4 | ||
95 | 63 | )"; | 72 | )"; |
96 | 64 | 73 | ||
97 | 65 | } | 74 | } |
98 | @@ -218,10 +227,14 @@ | |||
99 | 218 | .arg(scopeRunnerBin.fileName()) | 227 | .arg(scopeRunnerBin.fileName()) |
100 | 219 | .arg(scopeInstallDir.path()) | 228 | .arg(scopeInstallDir.path()) |
101 | 220 | .arg(clickInstallDir.path()) | 229 | .arg(clickInstallDir.path()) |
103 | 221 | .arg(oemInstallDir.path()); | 230 | .arg(oemInstallDir.path()) |
104 | 231 | .arg(c_processTimeout); | ||
105 | 222 | 232 | ||
106 | 223 | QString mwIni = MW_CONFIG | 233 | QString mwIni = MW_CONFIG |
108 | 224 | .arg(endpointsDir.path()); | 234 | .arg(endpointsDir.path()) |
109 | 235 | .arg(c_twoWayTimeout) | ||
110 | 236 | .arg(c_locateTimeout) | ||
111 | 237 | .arg(c_registryTimeout); | ||
112 | 225 | 238 | ||
113 | 226 | runtimeConfig.write(runtimeIni.toUtf8()); | 239 | runtimeConfig.write(runtimeIni.toUtf8()); |
114 | 227 | registryConfig.write(registryIni.toUtf8()); | 240 | registryConfig.write(registryIni.toUtf8()); |
115 | 228 | 241 | ||
116 | === modified file 'src/scope-harness/results/result.cpp' | |||
117 | --- src/scope-harness/results/result.cpp 2016-02-17 15:49:37 +0000 | |||
118 | +++ src/scope-harness/results/result.cpp 2016-09-08 08:53:48 +0000 | |||
119 | @@ -105,7 +105,7 @@ | |||
120 | 105 | 105 | ||
121 | 106 | if (spy.empty()) | 106 | if (spy.empty()) |
122 | 107 | { | 107 | { |
124 | 108 | TestUtils::throwIfNot(spy.wait(), "Scope activation signal failed to emit"); | 108 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Scope activation signal failed to emit"); |
125 | 109 | } | 109 | } |
126 | 110 | 110 | ||
127 | 111 | QVariantList response = spy.front(); | 111 | QVariantList response = spy.front(); |
128 | 112 | 112 | ||
129 | === modified file 'src/scope-harness/scope-harness.cpp' | |||
130 | --- src/scope-harness/scope-harness.cpp 2015-03-10 11:23:01 +0000 | |||
131 | +++ src/scope-harness/scope-harness.cpp 2016-09-08 08:53:48 +0000 | |||
132 | @@ -87,7 +87,7 @@ | |||
133 | 87 | 87 | ||
134 | 88 | // wait till the registry spawns | 88 | // wait till the registry spawns |
135 | 89 | QSignalSpy spy(p->m_scopes.get(), SIGNAL(loadedChanged())); | 89 | QSignalSpy spy(p->m_scopes.get(), SIGNAL(loadedChanged())); |
137 | 90 | TestUtils::throwIfNot(spy.wait(), "Scopes failed to initalize"); | 90 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Scopes failed to initalize"); |
138 | 91 | 91 | ||
139 | 92 | TestUtils::throwIf(p->m_scopes->rowCount() == 0 || !p->m_scopes->loaded(), "No scopes loaded"); | 92 | TestUtils::throwIf(p->m_scopes->rowCount() == 0 || !p->m_scopes->loaded(), "No scopes loaded"); |
140 | 93 | 93 | ||
141 | @@ -98,7 +98,7 @@ | |||
142 | 98 | QSignalSpy spy(scope.data(), SIGNAL(searchInProgressChanged())); | 98 | QSignalSpy spy(scope.data(), SIGNAL(searchInProgressChanged())); |
143 | 99 | if (scope->searchInProgress()) | 99 | if (scope->searchInProgress()) |
144 | 100 | { | 100 | { |
146 | 101 | TestUtils::throwIfNot(spy.wait(), "Search progress didn't change"); | 101 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Search progress didn't change"); |
147 | 102 | } | 102 | } |
148 | 103 | } | 103 | } |
149 | 104 | } | 104 | } |
150 | 105 | 105 | ||
151 | === modified file 'src/scope-harness/test-utils.cpp' | |||
152 | --- src/scope-harness/test-utils.cpp 2016-03-07 08:29:14 +0000 | |||
153 | +++ src/scope-harness/test-utils.cpp 2016-09-08 08:53:48 +0000 | |||
154 | @@ -90,7 +90,7 @@ | |||
155 | 90 | QVERIFY(scope->searchInProgress() || spy.count() > 1); | 90 | QVERIFY(scope->searchInProgress() || spy.count() > 1); |
156 | 91 | if (scope->searchInProgress()) { | 91 | if (scope->searchInProgress()) { |
157 | 92 | // wait for the search to finish | 92 | // wait for the search to finish |
159 | 93 | QVERIFY(spy.wait()); | 93 | QVERIFY(spy.wait(SIG_SPY_TIMEOUT)); |
160 | 94 | } | 94 | } |
161 | 95 | QCOMPARE(scope->searchInProgress(), false); | 95 | QCOMPARE(scope->searchInProgress(), false); |
162 | 96 | } | 96 | } |
163 | @@ -103,10 +103,10 @@ | |||
164 | 103 | scope->setSearchQuery(searchString); | 103 | scope->setSearchQuery(searchString); |
165 | 104 | // search should not be happening yet | 104 | // search should not be happening yet |
166 | 105 | QCOMPARE(scope->searchInProgress(), false); | 105 | QCOMPARE(scope->searchInProgress(), false); |
168 | 106 | QVERIFY(spy.wait()); | 106 | QVERIFY(spy.wait(SIG_SPY_TIMEOUT)); |
169 | 107 | if (scope->searchInProgress()) { | 107 | if (scope->searchInProgress()) { |
170 | 108 | // wait for the search to finish | 108 | // wait for the search to finish |
172 | 109 | QVERIFY(spy.wait()); | 109 | QVERIFY(spy.wait(SIG_SPY_TIMEOUT)); |
173 | 110 | } | 110 | } |
174 | 111 | QCOMPARE(scope->searchInProgress(), false); | 111 | QCOMPARE(scope->searchInProgress(), false); |
175 | 112 | } | 112 | } |
176 | @@ -116,9 +116,9 @@ | |||
177 | 116 | QCOMPARE(scope->searchInProgress(), false); | 116 | QCOMPARE(scope->searchInProgress(), false); |
178 | 117 | // wait for the search to finish | 117 | // wait for the search to finish |
179 | 118 | QSignalSpy spy(scope.data(), SIGNAL(searchInProgressChanged())); | 118 | QSignalSpy spy(scope.data(), SIGNAL(searchInProgressChanged())); |
181 | 119 | QVERIFY(spy.wait()); | 119 | QVERIFY(spy.wait(SIG_SPY_TIMEOUT)); |
182 | 120 | if(spy.size() == 1) { | 120 | if(spy.size() == 1) { |
184 | 121 | QVERIFY(spy.wait()); | 121 | QVERIFY(spy.wait(SIG_SPY_TIMEOUT)); |
185 | 122 | } | 122 | } |
186 | 123 | QCOMPARE(scope->searchInProgress(), false); | 123 | QCOMPARE(scope->searchInProgress(), false); |
187 | 124 | } | 124 | } |
188 | @@ -127,10 +127,10 @@ | |||
189 | 127 | { | 127 | { |
190 | 128 | QCOMPARE(scope->searchInProgress(), true); | 128 | QCOMPARE(scope->searchInProgress(), true); |
191 | 129 | QSignalSpy spy(scope.data(), SIGNAL(searchInProgressChanged())); | 129 | QSignalSpy spy(scope.data(), SIGNAL(searchInProgressChanged())); |
193 | 130 | QVERIFY(spy.wait()); | 130 | QVERIFY(spy.wait(SIG_SPY_TIMEOUT)); |
194 | 131 | if (scope->searchInProgress()) { | 131 | if (scope->searchInProgress()) { |
195 | 132 | // wait for the search to finish | 132 | // wait for the search to finish |
197 | 133 | QVERIFY(spy.wait()); | 133 | QVERIFY(spy.wait(SIG_SPY_TIMEOUT)); |
198 | 134 | } | 134 | } |
199 | 135 | QCOMPARE(scope->searchInProgress(), false); | 135 | QCOMPARE(scope->searchInProgress(), false); |
200 | 136 | } | 136 | } |
201 | @@ -138,7 +138,7 @@ | |||
202 | 138 | void TestUtils::waitForFilterStateChange(QSharedPointer<ss::ScopeInterface> scope) | 138 | void TestUtils::waitForFilterStateChange(QSharedPointer<ss::ScopeInterface> scope) |
203 | 139 | { | 139 | { |
204 | 140 | QSignalSpy spy(scope->filters(), SIGNAL(filterStateChanged())); | 140 | QSignalSpy spy(scope->filters(), SIGNAL(filterStateChanged())); |
206 | 141 | QVERIFY(spy.wait()); | 141 | QVERIFY(spy.wait(SIG_SPY_TIMEOUT)); |
207 | 142 | QCOMPARE(spy.count(), 1); | 142 | QCOMPARE(spy.count(), 1); |
208 | 143 | } | 143 | } |
209 | 144 | 144 | ||
210 | 145 | 145 | ||
211 | === modified file 'src/scope-harness/test-utils.h' | |||
212 | --- src/scope-harness/test-utils.h 2016-03-07 08:29:14 +0000 | |||
213 | +++ src/scope-harness/test-utils.h 2016-09-08 08:53:48 +0000 | |||
214 | @@ -28,6 +28,8 @@ | |||
215 | 28 | namespace unity { | 28 | namespace unity { |
216 | 29 | namespace scopeharness { | 29 | namespace scopeharness { |
217 | 30 | 30 | ||
218 | 31 | static constexpr int SIG_SPY_TIMEOUT = 60000; // milliseconds | ||
219 | 32 | |||
220 | 31 | class TestUtils | 33 | class TestUtils |
221 | 32 | { | 34 | { |
222 | 33 | public: | 35 | public: |
223 | 34 | 36 | ||
224 | === modified file 'src/scope-harness/view/preview-view.cpp' | |||
225 | --- src/scope-harness/view/preview-view.cpp 2016-02-17 15:49:37 +0000 | |||
226 | +++ src/scope-harness/view/preview-view.cpp 2016-09-08 08:53:48 +0000 | |||
227 | @@ -63,7 +63,7 @@ | |||
228 | 63 | if (!previewModel->loaded()) | 63 | if (!previewModel->loaded()) |
229 | 64 | { | 64 | { |
230 | 65 | QSignalSpy spy(previewModel, SIGNAL(loadedChanged())); | 65 | QSignalSpy spy(previewModel, SIGNAL(loadedChanged())); |
232 | 66 | spy.wait(); | 66 | spy.wait(SIG_SPY_TIMEOUT); |
233 | 67 | } | 67 | } |
234 | 68 | 68 | ||
235 | 69 | vector<preview::PreviewWidgetList> previewModels; | 69 | vector<preview::PreviewWidgetList> previewModels; |
236 | 70 | 70 | ||
237 | === modified file 'src/scope-harness/view/results-view.cpp' | |||
238 | --- src/scope-harness/view/results-view.cpp 2016-04-21 10:00:57 +0000 | |||
239 | +++ src/scope-harness/view/results-view.cpp 2016-09-08 08:53:48 +0000 | |||
240 | @@ -123,7 +123,7 @@ | |||
241 | 123 | 123 | ||
242 | 124 | if (!navigationModel->loaded()) | 124 | if (!navigationModel->loaded()) |
243 | 125 | { | 125 | { |
245 | 126 | TestUtils::throwIfNot(spy.wait(), "Department model failed to load"); | 126 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Department model failed to load"); |
246 | 127 | } | 127 | } |
247 | 128 | 128 | ||
248 | 129 | return results::Department(internal::DepartmentArguments{navigationModel}); | 129 | return results::Department(internal::DepartmentArguments{navigationModel}); |
249 | @@ -180,11 +180,11 @@ | |||
250 | 180 | 180 | ||
251 | 181 | if (!scope->searchInProgress()) | 181 | if (!scope->searchInProgress()) |
252 | 182 | { | 182 | { |
254 | 183 | spy.wait(100); | 183 | spy.wait(2000); |
255 | 184 | } | 184 | } |
256 | 185 | if (scope->searchInProgress()) | 185 | if (scope->searchInProgress()) |
257 | 186 | { | 186 | { |
259 | 187 | TestUtils::throwIfNot(spy.wait(), "Active scope didn't finish searching"); | 187 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Active scope didn't finish searching"); |
260 | 188 | } | 188 | } |
261 | 189 | 189 | ||
262 | 190 | break; | 190 | break; |
263 | @@ -223,11 +223,11 @@ | |||
264 | 223 | p->m_active_scope->setSearchQuery(searchString); | 223 | p->m_active_scope->setSearchQuery(searchString); |
265 | 224 | // search should not be happening yet | 224 | // search should not be happening yet |
266 | 225 | TestUtils::throwIf(p->m_active_scope->searchInProgress(), "Search was in progress too soon"); | 225 | TestUtils::throwIf(p->m_active_scope->searchInProgress(), "Search was in progress too soon"); |
268 | 226 | TestUtils::throwIfNot(spy.wait(), "Search spy received no events"); | 226 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Search spy received no events"); |
269 | 227 | if (p->m_active_scope->searchInProgress()) | 227 | if (p->m_active_scope->searchInProgress()) |
270 | 228 | { | 228 | { |
271 | 229 | // wait for the search to finish | 229 | // wait for the search to finish |
273 | 230 | TestUtils::throwIfNot(spy.wait(), "Search spy received no events"); | 230 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Search spy received no events"); |
274 | 231 | } | 231 | } |
275 | 232 | TestUtils::throwIf(p->m_active_scope->searchInProgress(), "Search did not complete"); | 232 | TestUtils::throwIf(p->m_active_scope->searchInProgress(), "Search did not complete"); |
276 | 233 | } | 233 | } |
277 | @@ -246,7 +246,7 @@ | |||
278 | 246 | if (p->m_active_scope->searchInProgress()) | 246 | if (p->m_active_scope->searchInProgress()) |
279 | 247 | { | 247 | { |
280 | 248 | // wait for the search to finish | 248 | // wait for the search to finish |
282 | 249 | TestUtils::throwIfNot(spy.wait(), "Search spy received no events"); | 249 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Search spy received no events"); |
283 | 250 | } | 250 | } |
284 | 251 | TestUtils::throwIf(p->m_active_scope->searchInProgress(), "Search did not complete"); | 251 | TestUtils::throwIf(p->m_active_scope->searchInProgress(), "Search did not complete"); |
285 | 252 | } | 252 | } |
286 | @@ -258,9 +258,9 @@ | |||
287 | 258 | TestUtils::throwIf(p->m_active_scope->searchInProgress(), "Search is already in progress"); | 258 | TestUtils::throwIf(p->m_active_scope->searchInProgress(), "Search is already in progress"); |
288 | 259 | // wait for the search to finish | 259 | // wait for the search to finish |
289 | 260 | QSignalSpy spy(p->m_active_scope.data(), SIGNAL(searchInProgressChanged())); | 260 | QSignalSpy spy(p->m_active_scope.data(), SIGNAL(searchInProgressChanged())); |
291 | 261 | TestUtils::throwIfNot(spy.wait(), "Search status didn't change"); | 261 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Search status didn't change"); |
292 | 262 | if(spy.size() == 1) { | 262 | if(spy.size() == 1) { |
294 | 263 | TestUtils::throwIfNot(spy.wait(), "Search status didn't change"); | 263 | TestUtils::throwIfNot(spy.wait(SIG_SPY_TIMEOUT), "Search status didn't change"); |
295 | 264 | } | 264 | } |
296 | 265 | TestUtils::throwIf(p->m_active_scope->searchInProgress(), ""); | 265 | TestUtils::throwIf(p->m_active_scope->searchInProgress(), ""); |
297 | 266 | } | 266 | } |
298 | 267 | 267 | ||
299 | === modified file 'src/scope-harness/view/settings-view.cpp' | |||
300 | --- src/scope-harness/view/settings-view.cpp 2015-06-11 16:10:09 +0000 | |||
301 | +++ src/scope-harness/view/settings-view.cpp 2016-09-08 08:53:48 +0000 | |||
302 | @@ -155,7 +155,7 @@ | |||
303 | 155 | } | 155 | } |
304 | 156 | QSignalSpy settingChangedSpy(settings, SIGNAL(settingsChanged())); | 156 | QSignalSpy settingChangedSpy(settings, SIGNAL(settingsChanged())); |
305 | 157 | settings->setData(index, ng::scopeVariantToQVariant(val), ss::SettingsModelInterface::Roles::RoleValue); | 157 | settings->setData(index, ng::scopeVariantToQVariant(val), ss::SettingsModelInterface::Roles::RoleValue); |
307 | 158 | TestUtils::throwIfNot(settingChangedSpy.wait(), "Settings update failed"); | 158 | TestUtils::throwIfNot(settingChangedSpy.wait(SIG_SPY_TIMEOUT), "Settings update failed"); |
308 | 159 | TestUtils::waitForSearchFinish(p->m_scope); | 159 | TestUtils::waitForSearchFinish(p->m_scope); |
309 | 160 | return; | 160 | return; |
310 | 161 | } | 161 | } |
FAILED: Continuous integration, rev:352 /jenkins. canonical. com/unity- api-1/job/ lp-unity- scopes- shell-ci/ 1/ /jenkins. canonical. com/unity- api-1/job/ build/611/ console /jenkins. canonical. com/unity- api-1/job/ build-0- fetch/617 /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=amd64, release= vivid+overlay/ 440/console /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=amd64, release= xenial+ overlay/ 440/console /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=amd64, release= yakkety/ 440/console /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=armhf, release= vivid+overlay/ 440/console /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=armhf, release= xenial+ overlay/ 440/console /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=armhf, release= yakkety/ 440/console /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=i386, release= vivid+overlay/ 440/console /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=i386, release= xenial+ overlay/ 440/console /jenkins. canonical. com/unity- api-1/job/ build-2- binpkg/ arch=i386, release= yakkety/ 440/console
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild: /jenkins. canonical. com/unity- api-1/job/ lp-unity- scopes- shell-ci/ 1/rebuild
https:/