Skip to content

Update TestCacheInit to dir instead of file

Steve Xuereb requested to merge fix-cache-init-test into master

What does this MR do?

Update TestCacheInit to dir instead of file

Why was this MR needed?

Windows doesn't seem to support +x for files, ending up with permissions looking like -rw-rw-rw- which is not 0777, which leads in the test to fail.

The main idea of the cache-init is to change permissions for directories not files so we should update the test to reflect that.

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

Examples of the failed test on windows: https://gitlab.com/gitlab-org/gitlab-runner/-/jobs/171974077

Merge request reports