Skip to content

Commit

Permalink
Try test files rather than test symlinks
Browse files Browse the repository at this point in the history
Looking at some of the failing test output, I think some of the failures
might just be because the scripts that are failing are symlinks to
scripts in the source directory, rather than script files.  Fix that the
easy way: remove the symlinks and use the actual files.
  • Loading branch information
me-and committed Nov 5, 2023
1 parent 95dc533 commit e2baf92
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python-flask.cygport
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ done

src_test () {
cd "$B"

# Some tests fail because of how they resolve the symlinks. To avoid
# that, make the tests directory be a straightforward copy rather than
# a set of symlinks.
rm -r tests
cp -r "$S"/tests ./tests

tox
}

Expand Down

0 comments on commit e2baf92

Please sign in to comment.