Skip to content

Commit

Permalink
STASH
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay committed Apr 1, 2024
1 parent 6b13f03 commit 6a30726
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ name: Run tests

on: # yamllint disable-line rule:truthy
push:
branches: ['master']
branches: ['master', 'cottsay/ws-test']
pull_request:

jobs:
pytest:
uses: ros-infrastructure/ci/.github/workflows/pytest.yaml@main
with:
matrix-filter: del(.matrix.os[] | select(contains("windows")))
yamllint:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 4 additions & 1 deletion src/catkin_pkg/workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from __future__ import print_function

import os
import warnings

CATKIN_WORKSPACE_MARKER_FILE = '.catkin_workspace'

Expand Down Expand Up @@ -94,7 +95,9 @@ def order_paths(paths_to_order, prefix_paths):
def _is_equal_or_in_parents(dir_, path):
dir_ = os.path.normcase(os.path.realpath(dir_))
path = os.path.normcase(os.path.realpath(path))
return path == dir_ or path.startswith(dir_ + os.sep)
res = (path == dir_ or path.startswith(dir_ + os.sep))
warnings.warn(f'Checking if {path} is under {dir_}: {res}')
return res


def ensure_workspace_marker(base_path):
Expand Down

0 comments on commit 6a30726

Please sign in to comment.