summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorroot2018-01-23 16:59:26 +0100
committerKarel Zak2018-01-24 12:53:35 +0100
commit20432749c17663d422e65c0bff99c019af0f16f4 (patch)
tree369b02d73344efc7309e534481fc744670dd9fce /tests/functions.sh
parentfsck.cramfs: fix error message (diff)
downloadkernel-qcow2-util-linux-20432749c17663d422e65c0bff99c019af0f16f4.tar.gz
kernel-qcow2-util-linux-20432749c17663d422e65c0bff99c019af0f16f4.tar.xz
kernel-qcow2-util-linux-20432749c17663d422e65c0bff99c019af0f16f4.zip
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>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index ef11a893e..d1c97e0b6 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/# <!-- util-linux.*-->//;
/^$/d" /etc/fstab
- sync /etc/fstab
+ sync /etc/fstab 2>/dev/null
ts_unlock "fstab"
}