summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 9d13d53db..333e12d76 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 4efb6f84b..b120d30b2 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