Skip to content

Commit

Permalink
Make test target depend on examples
Browse files Browse the repository at this point in the history
This usually won't matter but when examples involves compiled
code it is possible that the test collection phase will encounter
temporary files and fail internal consistency check.
  • Loading branch information
timj committed Mar 10, 2021
1 parent e2d237f commit 9f7e3fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lsst/sconsUtils/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ def s(ll):
state.env.Depends(pyTest, swigMods)
state.env.Depends(pyTest, state.targets["python"])
state.env.Depends(pyTest, state.targets["shebang"])
state.env.Depends(pyTest, state.targets["examples"])
result = ccList + pyList
state.targets["tests"].extend(result)
return result
Expand Down

0 comments on commit 9f7e3fc

Please sign in to comment.