From 39f948942b10c1314ebd0944bfed5f079e536f28 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Wed, 19 Oct 2016 20:45:19 +0200 Subject: [PATCH] tests: avoid &>> for bash compatibility Signed-off-by: Ruediger Meier --- tests/ts/schedutils/chrt | 2 +- tests/ts/schedutils/chrt-non-root | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.2