aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuediger Meier <ruediger.meier@ga-group.nl>2016-10-19 20:45:19 +0200
committerRuediger Meier <ruediger.meier@ga-group.nl>2016-10-20 18:32:21 +0200
commit39f948942b10c1314ebd0944bfed5f079e536f28 (patch)
tree4ad3356f46a4ac537cb09ce4420313fc8d9809e4
parente5cc93b5a8854fce80537f86a244977df212dcb5 (diff)
downloadutil-linux-39f948942b10c1314ebd0944bfed5f079e536f28.tar.gz
tests: avoid &>> for bash compatibility
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
-rwxr-xr-xtests/ts/schedutils/chrt2
-rwxr-xr-xtests/ts/schedutils/chrt-non-root4
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