diff options
author | Pádraig Brady <P@draigBrady.com> | 2017-08-28 21:51:37 -0700 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2017-08-29 00:37:59 -0700 |
commit | 26860526670566d9b0ea42ff27fa73668b9a19da (patch) | |
tree | 5c1d0b20fd14d54fedfd8eb81ed43eb9579c754e /tests/cp | |
parent | a19ff5d8179a7de38109fc78278229fd96f3941a (diff) | |
download | coreutils-26860526670566d9b0ea42ff27fa73668b9a19da.tar.gz |
tests: don't fail tests when failing to write files
* tests/sample-test: Use framework_error_ rather than fail=1
* tests/chown/deref.sh: Likewise.
* tests/chown/preserve-root.sh: Likewise.
* tests/cp/src-base-dot.sh: Likewise.
* tests/dd/unblock-sync.sh: Likewise.
* tests/du/2g.sh: Likewise.
* tests/du/inacc-dest.sh: Likewise.
* tests/du/one-file-system.sh: Likewise.
* tests/fmt/goal-option.sh: Likewise.
* tests/ln/hard-backup.sh: Likewise.
* tests/ls/color-dtype-dir.sh: Likewise.
* tests/ls/m-option.sh: Likewise.
* tests/ls/stat-dtype.sh: Likewise.
* tests/ls/time-style-diag.sh: Likewise.
* tests/ls/x-option.sh: Likewise.
* tests/misc/chcon.sh: Likewise.
* tests/misc/nohup.sh: Likewise.
* tests/misc/od-N.sh: Likewise.
* tests/misc/sort-compress.sh: Likewise.
* tests/misc/tac-continue.sh: Likewise.
* tests/misc/time-style.sh: Likewise.
* tests/mv/backup-dir.sh: Likewise.
* tests/mv/dir2dir.sh: Likewise.
* tests/rm/dir-no-w.sh: Likewise.
* tests/rm/dir-nonrecur.sh: Likewise.
* tests/rm/inaccessible.sh: Likewise.
* tests/rm/interactive-always.sh: Likewise.
* tests/rm/interactive-once.sh: Likewise.
* tests/rm/rm3.sh: Likewise.
* tests/rm/v-slash.sh: Likewise.
* tests/touch/relative.sh: Likewise.
Diffstat (limited to 'tests/cp')
-rwxr-xr-x | tests/cp/backup-1.sh | 2 | ||||
-rwxr-xr-x | tests/cp/src-base-dot.sh | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/cp/backup-1.sh b/tests/cp/backup-1.sh index 86d14e10f..8f7a3d414 100755 --- a/tests/cp/backup-1.sh +++ b/tests/cp/backup-1.sh @@ -23,7 +23,7 @@ suffix=.b file=F file_backup="$file$suffix" -echo test > $file || fail=1 +echo test > $file || framework_failure_ # Specify both version control and suffix so the environment variables # (possibly set by the user running these tests) aren't used. diff --git a/tests/cp/src-base-dot.sh b/tests/cp/src-base-dot.sh index dfa3acdf9..7acd5de07 100755 --- a/tests/cp/src-base-dot.sh +++ b/tests/cp/src-base-dot.sh @@ -21,12 +21,8 @@ print_ver_ cp mkdir x y || framework_failure_ - cd y cp --verbose -ab ../x/. . > out 2>&1 || fail=1 -cat <<\EOF > exp || fail=1 -EOF - -compare exp out || fail=1 +compare /dev/null out || fail=1 Exit $fail |