Skip to content

Conversation

@akinomyoga
Copy link
Collaborator

In commit 2ed0e85, I have added @pytest.mark.bashcomp(cwd=path) along with @pytest.mark.bashcomp(temp_cwd=True), but this has never been used. Now I'd like to use @pytest.mark.bashcomp(cwd=path) in test_make.py in the updated #546 to specify the directory that contains a static Makefile for testing #544. I noticed that it is unuseful that cwd is the relative path to the current working directory of pytest so would like to change to interpret it as the relative path to the test/fixtures.

@akinomyoga
Copy link
Collaborator Author

This is blocking #546, so I'd like to have this PR reviewed first.

@akinomyoga akinomyoga force-pushed the make-bashcomp-cwd-relative branch from f3b1b24 to 03219b0 Compare July 31, 2021 23:18
@akinomyoga
Copy link
Collaborator Author

I have updated the commit message. @scop Could you check this PR? I need to have this PR finished before finalizing #546.

@akinomyoga akinomyoga force-pushed the make-bashcomp-cwd-relative branch from 03219b0 to 38107a7 Compare August 21, 2021 20:02
@pytest.mark.bashcomp(cwd=path), which has been recently added in
commit 2ed0e85, had interpreted "cwd" as the relative path to the
pytest's working directory.  Now this commit makes "cwd" the relative
path to the directory "test/fixtures".

Note that @pytest.mark.bashcomp(cwd=path) has never been used so far
since this is added just for completeness when
@pytest.mark.bashcomp(temp_cwd=True) was supported.  This will be used
for the subsequent commits for the completion of "make".
@akinomyoga akinomyoga force-pushed the make-bashcomp-cwd-relative branch from 38107a7 to fa3243e Compare August 24, 2021 06:19
Copy link
Owner

@scop scop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍, sorry about the delay, merging.

@scop scop merged commit d599293 into scop:master Aug 27, 2021
@akinomyoga akinomyoga deleted the make-bashcomp-cwd-relative branch August 27, 2021 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants