aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules/file/test_api.py
blob: 8d13cbac1a224574d1299ccef1f43d378652c6ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.


# TODO(borenet): This module belongs in the recipe engine. Remove it from this
# repo once it has been moved.


from recipe_engine import recipe_test_api


class FileTestApi(recipe_test_api.RecipeTestApi):
  def listdir(self, dirname, files):
    return self.step_data(
      'listdir %s' % dirname,
      self.m.json.output(files))