From e28e97de7aa02969bcf939f20269ea5c0ff5269b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Steinbrink?= Date: Tue, 21 Jun 2022 20:02:11 +0200 Subject: Allow to run tests using "cargo t" The test_process_calling_cmdline test only allows "cargo test" and "cargo tarpaulin" for running the testsuite, for "cargo t" is a built-in alias for "cargo test" and should be allowed, too. --- src/utils/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils/process.rs b/src/utils/process.rs index ab4c4ede..8fac92e4 100644 --- a/src/utils/process.rs +++ b/src/utils/process.rs @@ -1195,7 +1195,7 @@ pub mod tests { } // Tests that caller is something like "cargo test" or "cargo tarpaulin" - let find_test = |args: &[String]| find_calling_process(args, &["test", "tarpaulin"]); + let find_test = |args: &[String]| find_calling_process(args, &["t", "test", "tarpaulin"]); assert_eq!(calling_process_cmdline(info, find_test), Some(())); let nonsense = ppid_distance -- cgit v1.2.3