Comment 13 for bug 2020135

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kayobe (master)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/896877
Committed: https://opendev.org/openstack/kayobe/commit/cfaf571794296d6e0cfed2771f8046a8280ffb22
Submitter: "Zuul (22348)"
Branch: master

commit cfaf571794296d6e0cfed2771f8046a8280ffb22
Author: Pierre Riteau <email address hidden>
Date: Fri Sep 29 07:11:43 2023 +0200

    Work around mocking issues on stable branches

    Backports of I9dd5b97dec93c0e5393a1e7d9640f85003651b56 to stable
    branches are failing CI checks because several unit tests mock
    os.path.exists and would need to be updated. This does not affect master
    because test code changed in I4d9f96ec4cf3c6cd0d28dfe5ddb239d863498a72.

    Work around this issue by replacing os.path.exists by os.path.isfile. It
    is a better check anyway since we are reading the file.

    Change-Id: Ic53efd03cecbd53ad3e3b64b664e084f4e25be0e
    Related-Bug: #2020135