1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #2620 from uutils/sylvestre-patch-8

freebsd: also fails the script when the tests fail
This commit is contained in:
Sylvestre Ledru 2021-09-05 21:09:21 +02:00 committed by GitHub
commit 68e89c7ea3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View file

@ -553,6 +553,7 @@ jobs:
# Needs to be done in a sudo as we are changing users
sudo -i -u cuuser sh << EOF
set -e
whoami
curl https://sh.rustup.rs -sSf --output rustup.sh
sh rustup.sh -y --profile=minimal

View file

@ -1,4 +1,4 @@
// spell-checker:ignore (words) agroupthatdoesntexist auserthatdoesntexist groupname notexisting passgrp
// spell-checker:ignore (words) agroupthatdoesntexist auserthatdoesntexist cuuser groupname notexisting passgrp
use crate::common::util::*;
#[cfg(target_os = "linux")]
@ -326,6 +326,8 @@ fn test_chown_only_user_id() {
}
#[test]
// FixME: stderr = chown: ownership of 'test_chown_file1' retained as cuuser:wheel
#[cfg(not(target_os = "freebsd"))]
fn test_chown_only_group_id() {
// test chown :1111 file.txt

View file

@ -1309,7 +1309,7 @@ fn test_copy_symlink_force() {
}
#[test]
#[cfg(unix)]
#[cfg(all(unix, not(target_os = "freebsd")))]
fn test_no_preserve_mode() {
use std::os::unix::prelude::MetadataExt;
@ -1335,7 +1335,7 @@ fn test_no_preserve_mode() {
}
#[test]
#[cfg(unix)]
#[cfg(all(unix, not(target_os = "freebsd")))]
fn test_preserve_mode() {
use std::os::unix::prelude::MetadataExt;

View file

@ -286,6 +286,8 @@ fn test_interpret_backslash_at_eol_literally() {
}
#[test]
// FixME: panicked at 'failed to write to stdin of child: Broken pipe (os error 32)
#[cfg(not(target_os = "freebsd"))]
fn test_more_than_2_sets() {
new_ucmd!()
.args(&["'abcdefgh'", "'a", "'b'"])