|
3 | 3 | source test/init |
4 | 4 | bpan:source bashplus +err +fs +sym |
5 | 5 |
|
6 | | -plan tests 98 |
| 6 | +plan tests 100 |
7 | 7 |
|
8 | 8 | host=localhost |
9 | 9 | url=https://localhost |
@@ -90,6 +90,9 @@ client-get-job() { |
90 | 90 | 10035) |
91 | 91 | echo '{"job": { "test": "vim", "result": "failed", "parent_group": "foo", "group": "bar", "settings": {"OPENQA_INVESTIGATE_ORIGIN": "10035"} } }' |
92 | 92 | ;; |
| 93 | + 10042) |
| 94 | + echo '{"job": { "test": "vim", "result": "failed", "group": "42", "settings": {"NO_INVESTIGATION": "1"} } }' |
| 95 | + ;; |
93 | 96 | 404) |
94 | 97 | echo '404 Not Found' |
95 | 98 | ;; |
@@ -225,6 +228,9 @@ get-dependencies-ajax() { |
225 | 228 | 10035) |
226 | 229 | echo '{"cluster":{},"edges":[], "nodes":[{"id":10035,"state":"cancelled","result":"none"}]}' |
227 | 230 | ;; |
| 231 | + 10042) |
| 232 | + echo '{"cluster":{}, "edges":[], "nodes":[{"id":10042,"state":"done","result":"failed"}]}' |
| 233 | + ;; |
228 | 234 | *) |
229 | 235 | echo '{"debug": "get-dependencies-ajax '"$tid"'"}' |
230 | 236 | ;; |
@@ -306,6 +312,10 @@ try force=true investigate 10031 |
306 | 312 | is "$rc" 0 'success when job is skipped (because of exclude_no_group and job w/o group)' |
307 | 313 | has "$got" 'Job w/o job group, $exclude_no_group is set, skipping investigation' |
308 | 314 |
|
| 315 | +try investigate 10042 |
| 316 | +is "$rc" 0 'NO_INVESTIGATION=1, a failed job with this variable should be skipped' |
| 317 | +has "$got" 'NO_INVESTIGATION=1 detected, skipping' |
| 318 | + |
309 | 319 | test-post-investigate() { |
310 | 320 | # job is one of the other investigation types, e.g. :investigate:last_good_tests |
311 | 321 | try investigate 3001 |
|
0 commit comments