summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-11-15 17:24:15 -0500
committerDan Davison <dandavison7@gmail.com>2021-11-15 21:01:32 -0500
commit008e1e934a0b6974ba7b626921e7238cda039ad9 (patch)
tree70af4f5a5df12d89de3f0b2dd5aeb3923bd637d8
parent929345f3136e04387531cc87c3627ead22217692 (diff)
Fix test of parent process when run under cargo-tarpaulin
-rw-r--r--src/utils.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 6f997d93..844f9f31 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -295,6 +295,10 @@ mod tests {
assert!(parent.is_some());
// Tests that caller is something like "cargo test"
- assert!(parent.unwrap().cmd().iter().any(|a| a == "test"));
+ assert!(parent
+ .unwrap()
+ .cmd()
+ .iter()
+ .any(|a| a == "test" || a == "tarpaulin"));
}
}