Skip to content

Commit

Permalink
Ensure that the tests depend on the policy files
Browse files Browse the repository at this point in the history
Otherwise you can get a race where pytest starts before
all the camera YAML files have been created.
  • Loading branch information
timj committed Sep 16, 2019
1 parent 39fa0ae commit d098d43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions policy/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ for camera in ["latiss", "lsstCam", "imsim", "phosim", "ts8", "ucd", "ts3", "com

env.Depends(commandInst, lsst.sconsUtils.targets["version"])
env.Depends(commandInst, lsst.sconsUtils.targets["python"])
env.Depends(lsst.sconsUtils.targets["tests"], f"{camera}.yaml")
dirList = ["lsstCam"]
if os.path.isdir(camera):
dirList.append(camera)
Expand Down

0 comments on commit d098d43

Please sign in to comment.