From: Ruediger Meier Date: Wed, 19 Oct 2016 18:45:19 +0000 (+0200) Subject: tests: avoid &>> for bash compatibility X-Git-Tag: v2.29~48^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39f948942b10c1314ebd0944bfed5f079e536f28;p=thirdparty%2Futil-linux.git tests: avoid &>> for bash compatibility Signed-off-by: Ruediger Meier --- diff --git a/tests/ts/schedutils/chrt b/tests/ts/schedutils/chrt index 9d13d53db5..333e12d76c 100755 --- a/tests/ts/schedutils/chrt +++ b/tests/ts/schedutils/chrt @@ -26,7 +26,7 @@ ts_skip_nonroot TS_KNOWN_FAIL="yes" function do_chrt { - $TS_CMD_CHRT $* $TS_CMD_CHRT --pid 0 | sed 's/.* policy: //; s/.* priority: //' &>> $TS_OUTPUT + $TS_CMD_CHRT $* $TS_CMD_CHRT --pid 0 | sed 's/.* policy: //; s/.* priority: //' >> $TS_OUTPUT 2>&1 } function skip_policy { diff --git a/tests/ts/schedutils/chrt-non-root b/tests/ts/schedutils/chrt-non-root index 4efb6f84bd..b120d30b26 100755 --- a/tests/ts/schedutils/chrt-non-root +++ b/tests/ts/schedutils/chrt-non-root @@ -25,7 +25,7 @@ ts_check_test_command "$TS_CMD_CHRT" TS_KNOWN_FAIL="yes" function do_chrt { - $TS_CMD_CHRT $* $TS_CMD_CHRT --pid 0 | sed 's/.* policy: //; s/.* priority: //' &>> $TS_OUTPUT + $TS_CMD_CHRT $* $TS_CMD_CHRT --pid 0 | sed 's/.* policy: //; s/.* priority: //' >> $TS_OUTPUT 2>&1 } function skip_policy { @@ -45,7 +45,7 @@ function cleanup_output { ts_init_subtest "batch-vs-nice" skip_policy SCHED_BATCH if [ $? == 0 ]; then - renice -n 5 -p $$ &>> $TS_OUTPUT + renice -n 5 -p $$ >> $TS_OUTPUT 2>&1 do_chrt --batch 0 cleanup_output ts_finalize_subtest