Skip to content

Commit

Permalink
Update sysinfo to 0.30 (#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee authored Jul 5, 2024
1 parent 80ea231 commit 78d8de5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
29 changes: 24 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pgrx-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ thiserror.workspace = true
paste = "1"
postgres = "0.19.7"
proptest = { version = "1", optional = true }
sysinfo = "0.29.10"
sysinfo = "0.30.10"
rand = "0.8.5"

[dependencies.pgrx] # Not unified in workspace due to default-features key
Expand Down
4 changes: 2 additions & 2 deletions pgrx-tests/src/framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use std::io::{BufRead, BufReader, Write};
use std::path::{Path, PathBuf};
use std::sync::{Arc, Mutex, OnceLock};
use std::time::Duration;
use sysinfo::{Pid, ProcessExt, System, SystemExt};
use sysinfo::{Pid, System};

mod shutdown;
pub use shutdown::add_shutdown_hook;
Expand Down Expand Up @@ -868,7 +868,7 @@ fn get_cargo_args() -> Vec<String> {
while let Some(process) = system.process(pid) {
// only if it's "cargo"... (This works for now, but just because `cargo`
// is at the end of the path. How *should* this handle `CARGO`?)
if process.exe().ends_with("cargo") {
if process.exe().is_some_and(|p| p.ends_with("cargo")) {
// ... and only if it's "cargo test"...
if process.cmd().iter().any(|arg| arg == "test")
&& !process.cmd().iter().any(|arg| arg == "pgrx")
Expand Down

0 comments on commit 78d8de5

Please sign in to comment.