1
Fork 0
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:
Jan Scheer 2021-07-08 01:32:39 +02:00
parent d59cd4fc4a
commit 14b348dd4b
No known key found for this signature in database
GPG key ID: C62AD4C29E2B9828
4 changed files with 16 additions and 6 deletions

View file

@ -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:");
}
}