mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #5769 from samueltardieu/is-ok-and
test: use clearer expression for CI testing
This commit is contained in:
commit
2c73e978ba
1 changed files with 1 additions and 3 deletions
|
@ -55,9 +55,7 @@ const DEFAULT_ENV: [(&str, &str); 2] = [("LC_ALL", "C"), ("TZ", "UTC")];
|
||||||
|
|
||||||
/// Test if the program is running under CI
|
/// Test if the program is running under CI
|
||||||
pub fn is_ci() -> bool {
|
pub fn is_ci() -> bool {
|
||||||
std::env::var("CI")
|
std::env::var("CI").is_ok_and(|s| s.eq_ignore_ascii_case("true"))
|
||||||
.unwrap_or_else(|_| String::from("false"))
|
|
||||||
.eq_ignore_ascii_case("true")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Read a test scenario fixture, returning its bytes
|
/// Read a test scenario fixture, returning its bytes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue