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:
parent
68ac426949
commit
20432749c1
|
@ -635,7 +635,7 @@ function ts_fstab_open {
|
||||||
|
|
||||||
function ts_fstab_close {
|
function ts_fstab_close {
|
||||||
echo "# -->" >> /etc/fstab
|
echo "# -->" >> /etc/fstab
|
||||||
sync /etc/fstab
|
sync /etc/fstab 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
function ts_fstab_addline {
|
function ts_fstab_addline {
|
||||||
|
@ -669,7 +669,7 @@ function ts_fstab_clean {
|
||||||
s/# <!-- util-linux.*-->//;
|
s/# <!-- util-linux.*-->//;
|
||||||
/^$/d" /etc/fstab
|
/^$/d" /etc/fstab
|
||||||
|
|
||||||
sync /etc/fstab
|
sync /etc/fstab 2>/dev/null
|
||||||
ts_unlock "fstab"
|
ts_unlock "fstab"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue