]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: avoid &>> for bash compatibility
authorRuediger Meier <ruediger.meier@ga-group.nl>
Wed, 19 Oct 2016 18:45:19 +0000 (20:45 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 20 Oct 2016 16:32:21 +0000 (18:32 +0200)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/ts/schedutils/chrt
tests/ts/schedutils/chrt-non-root

index 9d13d53db5c3027dbd11d6e9f0ab0f64ab380edf..333e12d76cff863f16ad21065a75bd2c0f596c59 100755 (executable)
@@ -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 {
index 4efb6f84bdeb44b92ac468a5bfe2f4f00ad53a28..b120d30b263fcfe9298a5e8cc20c1c32b4329280 100755 (executable)
@@ -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