[all-commits] [llvm/llvm-project] 052165: [llvm] Add support for running tests as root (#75285)

Tom Stellard via All-commits all-commits at lists.llvm.org
Thu Jan 4 11:25:22 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05216544a34eaf7aabf45df5f64d1c6c3e4e06c6
      https://github.com/llvm/llvm-project/commit/05216544a34eaf7aabf45df5f64d1c6c3e4e06c6
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2024-01-04 (Thu, 04 Jan 2024)

  Changed paths:
    M llvm/test/tools/llvm-ar/error-opening-permission.test
    M llvm/test/tools/llvm-dwarfdump/X86/output.s
    M llvm/test/tools/llvm-ifs/fail-file-write.test
    M llvm/test/tools/llvm-ranlib/error-opening-permission.test
    M llvm/utils/lit/lit/llvm/config.py

  Log Message:
  -----------
  [llvm] Add support for running tests as root (#75285)

There are a few test that check access permissions, so they need to be
disabled when running the tests as root.

The most common use case for running tests as root is inside of a
container. GitHub Actions, for example, only supports running the root
user inside of containers, so this change is necessary in order to run
the tests inside of a container running in the GitHub Actions
environment.




More information about the All-commits mailing list