mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests: fix tests for CICD environment
This commit is contained in:
parent
d59cd4fc4a
commit
14b348dd4b
4 changed files with 16 additions and 6 deletions
|
@ -3,6 +3,7 @@
|
|||
// * For the full copyright and license information, please view the LICENSE
|
||||
// * file that was distributed with this source code.
|
||||
|
||||
#[cfg(unix)]
|
||||
use crate::common::util::*;
|
||||
|
||||
#[test]
|
||||
|
@ -39,7 +40,9 @@ fn test_normal_compare_env() {
|
|||
if whoami == "nobody" {
|
||||
println!("test skipped:");
|
||||
return;
|
||||
} else {
|
||||
} else if !is_ci() {
|
||||
new_ucmd!().succeeds().stdout_is(format!("{}\n", whoami));
|
||||
} else {
|
||||
println!("test skipped:");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue