# Copyright 2020 The Fuchsia Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
from recipe_engine import recipe_test_api | |
class FxtTestApi(recipe_test_api.RecipeTestApi): | |
def launch(self, step_name, test_data): | |
return self.step_data(step_name, self.m.json.output(test_data)) | |
def monitor(self, step_name, success=True): | |
return self.step_data(step_name, retcode=0 if success else 1) |