blob: b4da7d8825d1dafa67df93252a41175c10ea8449 [file] [log] [blame]
# Copyright 2023 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Test to cover legacy aspects of PathTestApi."""
from recipe_engine.post_process import DropExpectation
DEPS = ['path']
def RunSteps(api):
for name in GETATTR_NAMES:
p = getattr(api.path, name) / 'file'
assert api.path.exists(p), p
api.path.checkout_dir = api.path.start_dir / 'somedir'
assert api.path.exists(getattr(api.path, 'checkout_dir') / 'file')
def GenTests(api):
paths = [getattr(api.path, name) / 'file' for name in GETATTR_NAMES]
paths.append(api.path.checkout_dir / 'file')
yield api.test(