summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorTim Oram <dev@mitmaro.ca>2020-10-17 22:52:51 -0230
committerTim Oram <dev@mitmaro.ca>2020-10-18 17:50:45 -0230
commitaa3fa5b173b6f869cf127c10b895cc138b28a3bd (patch)
treec16d9bb89ee3b0646a051f7a894a063234c6426b /.github
parent09239df13c1692b7bfb6b3166dc5d8f955e30661 (diff)
Refactor the tests that use process utils
This greatly simplifies the process utils based tests to use a function over a macro. The macro did not provide a decent stack-trace on error and was also difficult to maintain. This change uses a basic function with a callback that contains a test context that provides the flexibility needed for future tests.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pull-request.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml
index 4e9b66a..231b08a 100644
--- a/.github/workflows/pull-request.yml
+++ b/.github/workflows/pull-request.yml
@@ -64,8 +64,12 @@ jobs:
- name: Update Rust
run: rustup update stable
- name: Test
- run: cargo test --target x86_64-pc-windows-msvc --release --
+ run: cargo test --target x86_64-pc-windows-msvc --release
+ env:
+ RUSTFLAGS: '--cap-lints warn'
- name: Build
run: cargo build --target x86_64-pc-windows-msvc --release
+ env:
+ RUSTFLAGS: '--cap-lints warn'
- name: Test Run
run: cargo run --target x86_64-pc-windows-msvc --release -- --version