Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • tests
  • capture_replay_tests.py
Find file
BlameHistoryPermalink
  • Lubosz Sarnecki's avatar
    capture_replay_tests: Fix repository path retrieval. · 1330aa2c
    Lubosz Sarnecki authored Feb 12, 2021
    Use relation to retrieve angle repository path.
    
    The previous way of detecting the root repository folder failed to
    detect a correct path if the angle directory was in a path that
    contained the string angle.
    
    e.g. `/home/user/code/angle/angle`
    
    Other paths that would fail with the current implementation:
    `/home/user/my-angle-workspace/angle`
    `/home/tangled/workspace/angle/`
    `/home/user/code/angle-android`
    
    This way the path is constructed with the known relation of the script
    path inside the repository. Another advantage of this way is that the
    `angle` repository could be checked out with a different name.
    
    The disadvantage of this method is that whenever the script was moved,
    the relative path must be updated.
    
    Bug: angleproject:5645
    Change-Id: I9a56aeba449b248273087382adceb0d6fba5a494
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2715323Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com>
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    1330aa2c
capture_replay_tests.py 41.8 KB
EditWeb IDE
×

Replace capture_replay_tests.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.