From 151c3484da58fa02f7d2c69454be3cb4e3395d05 Mon Sep 17 00:00:00 2001 From: Sergiy Belozorov Date: Fri, 22 Feb 2019 19:56:08 +0000 Subject: [PATCH] Replace post-process checks with ones that are not deprecated R=iannucci@chromium.org Bug: 899266 Change-Id: Ia9b1f38590d636fa2858a2bd0bbf75d6b2cfe8fa Reviewed-on: https://chromium-review.googlesource.com/c/1483033 Reviewed-by: Robbie Iannucci Reviewed-by: John Budorick Commit-Queue: Sergiy Belozorov --- recipes/recipe_modules/bot_update/tests/ensure_checkout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/recipe_modules/bot_update/tests/ensure_checkout.py b/recipes/recipe_modules/bot_update/tests/ensure_checkout.py index a1fe200f8..c9043a57a 100644 --- a/recipes/recipe_modules/bot_update/tests/ensure_checkout.py +++ b/recipes/recipe_modules/bot_update/tests/ensure_checkout.py @@ -19,7 +19,7 @@ def RunSteps(api): def GenTests(api): yield ( api.test('basic') + - api.post_process(post_process.StatusCodeIn, 0) + + api.post_process(post_process.StatusSuccess) + api.post_process(post_process.DropExpectation) ) @@ -29,6 +29,6 @@ def GenTests(api): 'bot_update', api.json.output({'did_run': True}), retcode=1) + - api.post_process(post_process.StatusCodeIn, 1) + + api.post_process(post_process.StatusAnyFailure) + api.post_process(post_process.DropExpectation) )