Skip to content

Commit

Permalink
Update makefile to run tests and not toolchain as root
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaublitz committed Jan 20, 2023
1 parent c372c7b commit 0939ff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ test-mutex-guard:
# Loopback tests must have the mutex feature enabled because Rust runs the tests
# on multiple threads which will cause a panic if the mutex feature is not enabled.
test-loopback:
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 RUST_TEST_THREADS=1 cargo test --features=mutex -- --ignored --skip test_mutex_poisoning_panic
RUSTFLAGS="${DENY}" RUST_BACKTRACE=1 RUST_TEST_THREADS=1 CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER='sudo -E' cargo test --features=mutex -- --ignored --skip test_mutex_poisoning_panic

yamllint:
yamllint --strict .github/workflows/*.yml
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ the high level bindings build, and libcryptsetup successfully encrypts a loopbac
This can be invoked as follows:

```
sudo cargo test -- --test-threads=1 --ignored
make test-loopback
```

0 comments on commit 0939ff1

Please sign in to comment.