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 <ruediger.meier@ga-group.nl>
This commit is contained in:
root 2018-01-23 16:59:26 +01:00 committed by Karel Zak
parent 68ac426949
commit 20432749c1
1 changed files with 2 additions and 2 deletions

View File

@ -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/# <!-- util-linux.*-->//;
/^$/d" /etc/fstab
sync /etc/fstab
sync /etc/fstab 2>/dev/null
ts_unlock "fstab"
}