Skip to content

report.html is created at the start of pytest run instead of after in v4 #796

@thenu97

Description

@thenu97

We run two containers in one pod. One container runs a bash script that checks the existence of the report.html then shuts the pods down after uploading the html file to azure blob storage. The second container runs the pytest command.

Due to the change in report.html being created at the start of the pytest run now, it no longer waits for the test on the second container to finish. It uploads the unfinished version of the report instead.

As this is a breaking change, could you please make a note of this in the release notes or maybe fix this by making a temporary file in /tmp then move it to the report directory at the end of the test

Part of the script:

while [ ! -f /tmp/report.html ]; do
    sleep 2
done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions