From: root Date: Tue, 23 Jan 2018 15:59:26 +0000 (+0100) Subject: tests: suppress warning for old sync(1) X-Git-Tag: v2.32-rc1~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20432749c17663d422e65c0bff99c019af0f16f4;p=thirdparty%2Futil-linux.git tests: suppress warning for old sync(1) Old sync(1) prints a warning which looks ugly among our test output: "sync: ignoring all arguments" Seen on travis, Ubuntu <= 14.04 (Trusty). Signed-off-by: Ruediger Meier --- diff --git a/tests/functions.sh b/tests/functions.sh index ef11a893e9..d1c97e0b6f 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -635,7 +635,7 @@ function ts_fstab_open { function ts_fstab_close { echo "# -->" >> /etc/fstab - sync /etc/fstab + sync /etc/fstab 2>/dev/null } function ts_fstab_addline { @@ -669,7 +669,7 @@ function ts_fstab_clean { s/# //; /^$/d" /etc/fstab - sync /etc/fstab + sync /etc/fstab 2>/dev/null ts_unlock "fstab" }