Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Issue 2988583002: [path] Fix root path mocking. (Closed)

Created:
3 years, 5 months ago by dnj
Modified:
3 years, 5 months ago
Reviewers:
Vadim Sh., iannucci
CC:
chromium-reviews, infra-reviews+recipes-py_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[path] Fix root path mocking. Currently, mocking a root path (e.g., "/foo/bar") will result in infinite recursion due to dirname on the root element equalling itself. Fix this by detecting when a "dirname" yields itself and observing this as a terminal condition. BUG=None TEST=expectations R=iannucci@chromium.org, vadimsh@chromium.org Review-Url: https://codereview.chromium.org/2988583002 Committed: https://github.com/luci/recipes-py/commit/8e8339afbdb986a9195a97cb2c173984bdd4b758

Patch Set 1 #

Patch Set 2 : use real paths #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -13 lines) Patch
M README.recipes.md View 2 chunks +11 lines, -11 lines 0 comments Download
M recipe_modules/path/api.py View 1 chunk +3 lines, -2 lines 0 comments Download
M recipe_modules/path/examples/full.py View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
dnj
3 years, 5 months ago (2017-07-22 16:45:36 UTC) #1
Vadim Sh.
lgtm
3 years, 5 months ago (2017-07-23 19:38:47 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2988583002/1
3 years, 5 months ago (2017-07-24 09:51:56 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: Recipes-py Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/378cd8534dbc8910)
3 years, 5 months ago (2017-07-24 09:59:49 UTC) #6
dnj
use real paths
3 years, 5 months ago (2017-07-24 10:04:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2988583002/20001
3 years, 5 months ago (2017-07-24 10:04:29 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Recipes-py Presubmit on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/378ce2dd6e959e10)
3 years, 5 months ago (2017-07-24 10:11:20 UTC) #12
iannucci
lgtm
3 years, 5 months ago (2017-07-24 10:14:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2988583002/20001
3 years, 5 months ago (2017-07-24 10:14:40 UTC) #15
commit-bot: I haz the power
3 years, 5 months ago (2017-07-24 10:18:15 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://github.com/luci/recipes-py/commit/8e8339afbdb986a9195a97cb2c173984bdd...

Powered by Google App Engine
This is Rietveld 408576698