Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: don't run commands in the server container as root #6717

Merged
merged 1 commit into from
Aug 22, 2023

Commits on Aug 21, 2023

  1. tests: don't run commands in the server container as root

    I encountered an issue where the server process fails at startup due to
    being unable to create `/home/django/cache/events`, due to
    `/home/django/cache` being owned by `root`.
    
    I'm not sure how exactly that happened, but there are several commands
    involving Django or CVAT data that the test suite runs as root, and it had
    to be one of them that caused it.
    
    I don't think there's any reason to run these commands as root, so use
    `docker_exec_cvat` for them instead of `docker_exec`. This way, they will
    run as the Django user instead.
    SpecLad committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    94e04ba View commit details
    Browse the repository at this point in the history